summaryrefslogtreecommitdiff
path: root/archetypes/collections/desktop
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-06-15 15:32:41 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-06-15 15:32:41 -0500
commit9f0dbb1523e5aaf686958d5e100375789ca5eaee (patch)
tree6cd75223b2ea037cd4e5b654d890fdc00eec964e /archetypes/collections/desktop
parentcba6c3560cf47932e426117c11878db8aebff33d (diff)
downloadnixos-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.nix1
-rw-r--r--archetypes/collections/desktop/printing.nix17
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;
+ };
+ };
+}