refactor(nixos): externalize SSH client keys
This commit is contained in:
1
configs/nixos/hosts/neogaia/ssh_user_ed25519_key.pub
Normal file
1
configs/nixos/hosts/neogaia/ssh_user_ed25519_key.pub
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGxQ4kWsBo2OGYIPOkFe0vNEcB3yoJwAu0y9wrdQzALE alexion@neogaia
|
||||||
1
configs/nixos/hosts/pikachu/ssh_user_ed25519_key.pub
Normal file
1
configs/nixos/hosts/pikachu/ssh_user_ed25519_key.pub
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINNqJIC6VRXyvrNf3n9su9KdPCikC3CjK/QrCK2reHdB alexion@pikachu
|
||||||
1
configs/nixos/hosts/zeus/ssh_user_ed25519_key.pub
Normal file
1
configs/nixos/hosts/zeus/ssh_user_ed25519_key.pub
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIRBcHHuubptXCdvED/p2dR3MpjGN/AimqLasLY5984G alexion@zeus
|
||||||
@@ -37,22 +37,23 @@ let
|
|||||||
|
|
||||||
neogaia = {
|
neogaia = {
|
||||||
hostName = registry.address.neogaia.self;
|
hostName = registry.address.neogaia.self;
|
||||||
clientKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGxQ4kWsBo2OGYIPOkFe0vNEcB3yoJwAu0y9wrdQzALE alexion@neogaia";
|
clientKey = clientKeyFor "neogaia";
|
||||||
hostKeys = hostKeysFor "neogaia";
|
hostKeys = hostKeysFor "neogaia";
|
||||||
};
|
};
|
||||||
|
|
||||||
zeus = {
|
zeus = {
|
||||||
hostName = registry.address.zeus.self;
|
hostName = registry.address.zeus.self;
|
||||||
clientKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIRBcHHuubptXCdvED/p2dR3MpjGN/AimqLasLY5984G alexion@zeus";
|
clientKey = clientKeyFor "zeus";
|
||||||
hostKeys = hostKeysFor "zeus";
|
hostKeys = hostKeysFor "zeus";
|
||||||
};
|
};
|
||||||
|
|
||||||
pikachu = {
|
pikachu = {
|
||||||
hostName = registry.address.pikachu.self;
|
hostName = registry.address.pikachu.self;
|
||||||
clientKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINNqJIC6VRXyvrNf3n9su9KdPCikC3CjK/QrCK2reHdB alexion@pikachu";
|
clientKey = clientKeyFor "pikachu";
|
||||||
hostKeys = hostKeysFor "pikachu";
|
hostKeys = hostKeysFor "pikachu";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
clientKeyFor = host: builtins.readFile (../../hosts + "/${host}/ssh_user_ed25519_key.pub");
|
||||||
hostKeysFor =
|
hostKeysFor =
|
||||||
host:
|
host:
|
||||||
map builtins.readFile [
|
map builtins.readFile [
|
||||||
|
|||||||
Reference in New Issue
Block a user