From 2a3f5574cf92f77a92330122c163aba27291b5a6 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Mon, 4 Jun 2018 21:41:27 +0200 Subject: [PATCH] Remove local symlink --- .gitignore | 1 - system/modules/init_ssh.nix | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 13b101b4..40c71083 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ configuration.nix -local diff --git a/system/modules/init_ssh.nix b/system/modules/init_ssh.nix index 6e6ca773..d9ad5d0e 100644 --- a/system/modules/init_ssh.nix +++ b/system/modules/init_ssh.nix @@ -13,7 +13,7 @@ config = mkIf config.m-0.server.enable { # generate file with # dropbearkey -t rsa -f /etc/nixos/boot_rsa # nix-env -iA nixos.dropbear - hostRSAKey = ../../local/secret/boot_rsa; + hostRSAKey = builtins.toPath "/etc/nixos/hosts/${config.networking.hostName}/secret/boot_rsa"; }; }; postMountCommands = "ip link set eth0 down";