nix-conf/modules/nixos/ssh/default.nix
2024-04-11 10:25:51 +05:30

12 lines
182 B
Nix

{
config,
lib,
...
}: {
options = {
ssh.enable = lib.mkEnableOption "enable ssh";
};
config = lib.mkIf config.ssh.enable {
services.openssh.enable = true;
};
}