27 lines
694 B
Nix
27 lines
694 B
Nix
{lib, ...}: {
|
|
options = {
|
|
pim.ssh.keys = lib.mkOption {
|
|
type = lib.types.attrsOf (lib.types.listOf lib.types.str);
|
|
};
|
|
};
|
|
|
|
config = {
|
|
pim.ssh.keys = {
|
|
pim = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOodpLr+FDRyKyHjucHizNLVFHZ5AQmE9GmxMnOsSoaw pimkunis@thinkpadpim"];
|
|
niels = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINUZp4BCxf7uLa1QWonx/Crf8tYZ5MKIZ+EuaBa82LrV user@user-laptop"];
|
|
};
|
|
|
|
services = {
|
|
openssh = {
|
|
openFirewall = true;
|
|
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
GSSAPIAuthentication = false;
|
|
UseDns = false;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|