diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 15:32:41 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 15:32:41 -0500 |
| commit | 9f0dbb1523e5aaf686958d5e100375789ca5eaee (patch) | |
| tree | 6cd75223b2ea037cd4e5b654d890fdc00eec964e /archetypes/collections/desktop | |
| parent | cba6c3560cf47932e426117c11878db8aebff33d (diff) | |
| download | nixos-9f0dbb1523e5aaf686958d5e100375789ca5eaee.tar.xz nixos-9f0dbb1523e5aaf686958d5e100375789ca5eaee.zip | |
move printing option module to desktop collections
Diffstat (limited to 'archetypes/collections/desktop')
| -rw-r--r-- | archetypes/collections/desktop/default.nix | 1 | ||||
| -rw-r--r-- | archetypes/collections/desktop/printing.nix | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/archetypes/collections/desktop/default.nix b/archetypes/collections/desktop/default.nix index 418eb71..62ee472 100644 --- a/archetypes/collections/desktop/default.nix +++ b/archetypes/collections/desktop/default.nix @@ -7,6 +7,7 @@ ./firefox.nix ./graphics.nix ./office.nix + ./printing.nix ./thumbnailers.nix ./utilities.nix ./video.nix diff --git a/archetypes/collections/desktop/printing.nix b/archetypes/collections/desktop/printing.nix new file mode 100644 index 0000000..ed31048 --- /dev/null +++ b/archetypes/collections/desktop/printing.nix @@ -0,0 +1,17 @@ +{ lib, config, ... }: let + cfg = config._archetypes.collections.desktop.printing; +in { + options._archetypes.collections.desktop.printing = { + enable = lib.mkEnableOption "enables printing and avahi service"; + }; + + config = lib.mkIf cfg.enable { + services.printing.enable = true; + + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; + }; +} |
