Split up code to support server configuration

This commit is contained in:
Jan-Bulthuis committed 2025-04-16 13:54:14 +02:00
1 parent 6364d8afa0
commit fa2413f272
15 files changed
+524 -256

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.ssh;
in
{
options.modules.ssh = {
enable = mkEnableOption "ssh";
};
config = mkIf cfg.enable {
services.openssh.enable = true;
};
}