clan/modules/moritz/programs/ssh.nix

25 lines
399 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.my.programs.ssh;
in {
options.my.programs.ssh = {
enable = mkEnableOption "ssh";
includes = mkOption {
default = [];
type = with types; listOf str;
};
};
config =
mkIf cfg.enable
{
home-manager.users.moritz.programs.ssh = {
inherit (cfg) includes;
enable = true;
};
};
}