Nixos-Configuration/modules/nixos/common/ssh.nix
2025-06-19 15:52:56 -04:00

17 lines
354 B
Nix

{ lib, config, ... }:
{
options.deploy.address = lib.mkOption {
type = lib.types.str;
default = config.networking.hostName;
};
config = {
services.openssh.enable = true;
security = {
sudo.execWheelOnly = true;
pam = {
sshAgentAuth.enable = true;
services.sudo.sshAgentAuth = true;
};
};
};
}