ssh
This commit is contained in:
parent
0057730958
commit
bdcb1791ad
7 changed files with 52 additions and 40 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
|
||||
sops.secrets."ssh/nixremote/private" = {
|
||||
|
|
@ -22,12 +21,22 @@
|
|||
Host lilith-server-builder
|
||||
HostName firelilith.org
|
||||
User nixremote
|
||||
IdentityFile /home/lilith/.ssh/nixremote
|
||||
IdentityFile /root/.ssh/nixremote
|
||||
ConnectTimeout 5
|
||||
Host lilith-pc-builder
|
||||
HostName lilith-pc
|
||||
User nixremote
|
||||
IdentityFile /home/lilith/.ssh/nixremote
|
||||
IdentityFile /root/.ssh/nixremote
|
||||
ConnectTimeout 5
|
||||
Host lilith-lab-builder
|
||||
HostName lilith-lab
|
||||
User nixremote
|
||||
IdentityFile /root/.ssh/nixremote
|
||||
ConnectTimeout 5
|
||||
Host lilith-pad-builder
|
||||
HostName lilith-pad
|
||||
User nixremote
|
||||
IdentityFile /root/.ssh/nixremote
|
||||
ConnectTimeout 5
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -14,7 +14,12 @@ in
|
|||
];
|
||||
hashedPasswordFile = config.sops.secrets."user/password".path;
|
||||
|
||||
# openssh.authorizedKeys.keyFiles = [ config.sops.secrets."user/ssh/authorized" ];
|
||||
# mistake in openssh module, using a keyfile here tries to read file at compile time
|
||||
# openssh.authorizedKeys.keyFiles = [ config.sops.secrets."user/ssh/authorized".path ];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJaDyGTHTfzJ+soNsOfUiboKYRJxPAK+KspcUNwWWU0q"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHlt34e/9Im6AM8qjYWM+psPQEVTQVSDHNx6wrTDLbLD"
|
||||
];
|
||||
};
|
||||
|
||||
nixremote = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue