nix-conf/modules/nixos/ssh/default.nix

13 lines
182 B
Nix
Raw Normal View History

2024-04-11 04:55:51 +00:00
{
config,
lib,
...
}: {
options = {
ssh.enable = lib.mkEnableOption "enable ssh";
};
config = lib.mkIf config.ssh.enable {
services.openssh.enable = true;
};
}