nichts/modules/services/ssh.nix

14 lines
275 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.programs.ssh;
username = config.modules.other.system.username;
in {
options.modules.programs.ssh.enable = mkEnableOption "ssh";
config = mkIf cfg.enable {programs.ssh = {startAgent = true;};};
}