modules/darwin/common: refactor authorizedKeys
This commit is contained in:
parent
590a46c1e0
commit
1a1955404f
3 changed files with 11 additions and 18 deletions
|
@ -16,13 +16,4 @@
|
||||||
networking.hostName = "darwin02";
|
networking.hostName = "darwin02";
|
||||||
|
|
||||||
system.stateVersion = 4;
|
system.stateVersion = 4;
|
||||||
|
|
||||||
# TODO: refactor this to share /users with nixos
|
|
||||||
# if user is removed the keys need to be removed manually from /etc/ssh/authorized_keys.d
|
|
||||||
users.users.hetzner.openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOG/9rsFqC2tg+W5YZxthW5xhUJEfZ8ShqkRtVe+A6+u" # hercules-ssh-deploy
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbBp2dH2X3dcU1zh+xW3ZsdYROKpJd3n13ssOP092qE" # mic92
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOuiDoBOxgyer8vGcfAIbE6TC4n4jo8lhG9l01iJ0bZz" # zimbatm
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbCYwWByGE46XHH4Q0vZgQ5sOUgbH50M8KO2xhBC4m/" # zowoq
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,13 +16,4 @@
|
||||||
networking.hostName = "darwin03";
|
networking.hostName = "darwin03";
|
||||||
|
|
||||||
system.stateVersion = 4;
|
system.stateVersion = 4;
|
||||||
|
|
||||||
# TODO: refactor this to share /users with nixos
|
|
||||||
# if user is removed the keys need to be removed manually from /etc/ssh/authorized_keys.d
|
|
||||||
users.users.hetzner.openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOG/9rsFqC2tg+W5YZxthW5xhUJEfZ8ShqkRtVe+A6+u" # hercules-ssh-deploy
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbBp2dH2X3dcU1zh+xW3ZsdYROKpJd3n13ssOP092qE" # mic92
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOuiDoBOxgyer8vGcfAIbE6TC4n4jo8lhG9l01iJ0bZz" # zimbatm
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbCYwWByGE46XHH4Q0vZgQ5sOUgbH50M8KO2xhBC4m/" # zowoq
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,17 @@
|
||||||
../../shared/nix-daemon.nix
|
../../shared/nix-daemon.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# TODO: refactor this to share /users with nixos
|
||||||
|
# if user is removed the keys need to be removed manually from /etc/ssh/authorized_keys.d
|
||||||
|
users.users = {
|
||||||
|
hetzner.openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOG/9rsFqC2tg+W5YZxthW5xhUJEfZ8ShqkRtVe+A6+u" # hercules-ssh-deploy
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbBp2dH2X3dcU1zh+xW3ZsdYROKpJd3n13ssOP092qE" # mic92
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOuiDoBOxgyer8vGcfAIbE6TC4n4jo8lhG9l01iJ0bZz" # zimbatm
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbCYwWByGE46XHH4Q0vZgQ5sOUgbH50M8KO2xhBC4m/" # zowoq
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# use the same version as srvos
|
# use the same version as srvos
|
||||||
# https://github.com/numtide/srvos/blob/main/nixos/common/nix.nix#L4
|
# https://github.com/numtide/srvos/blob/main/nixos/common/nix.nix#L4
|
||||||
nix.package = pkgs.nixVersions.nix_2_16;
|
nix.package = pkgs.nixVersions.nix_2_16;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue