feat: extract some config into modules

This commit is contained in:
2026-02-21 03:16:16 +01:00
parent 507a138cde
commit cc96675ea3
5 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{
lib,
config,
...
}:
{
options = {
printing = {
enable = lib.mkEnableOption "CUPS printing with Avahi discovery";
};
};
config = lib.mkIf config.printing.enable {
services.printing.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
};
}