alqueva/hosts/shared/ssh.nix

25 lines
380 B
Nix
Raw Permalink Normal View History

2024-10-29 15:37:11 +00:00
{
config,
lib,
...
}:
let
cfg = config.alqueva.programs.openssh;
in
{
options.alqueva.programs.openssh = {
2024-10-29 15:37:11 +00:00
enable = lib.mkEnableOption "OpenSSH";
};
config = lib.mkIf cfg.enable {
programs = {
2025-01-16 00:37:14 +00:00
ssh = {
enableAskPassword = true;
startAgent = true;
};
seahorse.enable = true;
};
2024-10-29 15:37:11 +00:00
services.openssh.enable = true;
};
}