refactor
This commit is contained in:
17
modules/system/sysd/network/openssh/default.nix
Normal file
17
modules/system/sysd/network/openssh/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.system.sysd.network.openssh;
|
||||
in {
|
||||
options = {
|
||||
system.sysd.network.openssh.enable = mkEnableOption "Enables openssh";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user