28 lines
522 B
Nix
28 lines
522 B
Nix
{ config, ... }:
|
|
let
|
|
account = config.repo.account;
|
|
in
|
|
{
|
|
flake.modules.nixos.ssh-agent-auth = {
|
|
security.pam = {
|
|
sshAgentAuth.enable = true;
|
|
services.sudo.sshAgentAuth = true;
|
|
};
|
|
};
|
|
|
|
flake.modules.nixos.openssh =
|
|
{ ... }:
|
|
{
|
|
services.openssh.openFirewall = true;
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = false;
|
|
AllowUsers = [ account.name ];
|
|
};
|
|
};
|
|
};
|
|
}
|