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";