summaryrefslogtreecommitdiff
path: root/modules/root/cups.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/root/cups.nix')
-rw-r--r--modules/root/cups.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/root/cups.nix b/modules/root/cups.nix
new file mode 100644
index 0000000..39f8434
--- /dev/null
+++ b/modules/root/cups.nix
@@ -0,0 +1,9 @@
+{ lib, config, ... }: {
+ options = {
+ cups.enable = lib.mkEnableOption "enables printing";
+ };
+
+ config = lib.mkIf config.cups.enable {
+ services.printing.enable = true;
+ };
+}