devos/profiles/ssh/default.nix

22 lines
568 B
Nix
Raw Normal View History

2021-04-06 13:37:40 +02:00
{ ... }: {
services.openssh = {
enable = true;
forwardX11 = true;
permitRootLogin = "no";
startWhenNeeded = true;
2021-07-07 12:55:16 +02:00
openFirewall = true;
passwordAuthentication = false;
2021-04-06 13:37:40 +02:00
};
2021-07-07 12:46:55 +02:00
nix.sshServe.enable = true;
2021-07-07 12:47:59 +02:00
nix.sshServe.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID29iFz1dBQmbCbVkclFEn4I9dY2uf3u7bbKs2obEIl/ mae@teapot"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKGYGAlEHbg4fqLk+KgpqVtCCbUnUq1Z/IF0xPPJqJT8 justabanana@tesco"
2021-07-07 12:46:55 +02:00
];
2021-07-20 15:58:13 +02:00
#nix.binaryCaches = [
# "ssh://nix-ssh@192.168.0.18"
#];
2021-07-07 20:32:40 +02:00
nix.allowedUsers = [
"nix-ssh"
];
2021-04-06 13:37:40 +02:00
}