17 lines
354 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
}
|