hosts/eldrid/nix.nix: fix ssh key
hosts/sarien/nix.nix: fix ssh key Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -5,6 +5,10 @@
|
||||
# pkgs,
|
||||
...
|
||||
}: let
|
||||
hostName =
|
||||
if (config.networking.hostName == "vylxae")
|
||||
then "sarien"
|
||||
else config.networking.hostName;
|
||||
inherit (config.sops) secrets;
|
||||
inherit (inputs) mysecrets;
|
||||
in {
|
||||
@ -25,7 +29,7 @@ in {
|
||||
hostName = "dunamis";
|
||||
sshUser = "nix-ssh";
|
||||
system = "x86_64-linux";
|
||||
sshKey = secrets."ssh-eldrid-user".path;
|
||||
sshKey = secrets."ssh-${hostName}-user".path;
|
||||
supportedFeatures = ["nixos-test" "big-parallel" "kvm" "benchmark"];
|
||||
publicHostKey = builtins.readFile "${mysecrets}/ssh/ssh_host_ed25519_dunamis.base64";
|
||||
}
|
||||
|
Reference in New Issue
Block a user