summaryrefslogtreecommitdiff
path: root/nixos/features/services/bundles
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/features/services/bundles')
-rw-r--r--nixos/features/services/bundles/printing.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/features/services/bundles/printing.nix b/nixos/features/services/bundles/printing.nix
new file mode 100644
index 0000000..ea255be
--- /dev/null
+++ b/nixos/features/services/bundles/printing.nix
@@ -0,0 +1,13 @@
+{ config, lib, ... }: let
+ cfg = config.features.services.bundles.printing;
+in {
+ options.features.services.bundles.printing.enable = lib.mkEnableOption "printing";
+ config = lib.mkIf cfg.enable {
+ services.printing.enable = true;
+ services.avahi = {
+ enable = true;
+ nssmdns4 = true;
+ openFirewall = true;
+ };
+ };
+}