about summary refs log tree commit diff stats
path: root/sys/svcs
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-07 20:40:49 +0100
committerSoispha <soispha@vhack.eu>2024-02-07 20:40:49 +0100
commit6a32061d7410891618ca0b6fc482087650514336 (patch)
treeb61f1a552f78376f6d2115fd8a1bbb1b5af81a98 /sys/svcs
parentfix(sys/nixpkgs/pkgs/comments): Make `channel_is_verified` optional (diff)
downloadnixos-config-6a32061d7410891618ca0b6fc482087650514336.tar.gz
nixos-config-6a32061d7410891618ca0b6fc482087650514336.zip
fix(sys/svcs/printing): Configure Cups to be stateless
Diffstat (limited to '')
-rw-r--r--sys/svcs/printing/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/svcs/printing/default.nix b/sys/svcs/printing/default.nix
index d996ec20..47f00d21 100644
--- a/sys/svcs/printing/default.nix
+++ b/sys/svcs/printing/default.nix
@@ -9,6 +9,10 @@
     enable = true;
     startWhenNeeded = true;
     webInterface = false;
+
+    # deletes `/var/cache/cups`, `/var/lib/cups` and `/var/spool/cups` on cups startup
+    stateless = true;
+
     drivers = [];
   };
   hardware = {