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:
2025-04-06 14:10:07 +03:00
parent 3190945028
commit fa6e2f9e21
2 changed files with 10 additions and 2 deletions

View File

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

View File

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