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