about summary refs log tree commit diff stats
path: root/modules/by-name/pr/printing/module.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/pr/printing/module.nix (renamed from modules/by-name/pi/printing/module.nix)20
1 files changed, 5 insertions, 15 deletions
diff --git a/modules/by-name/pi/printing/module.nix b/modules/by-name/pr/printing/module.nix
index cfcd2154..c3283cbf 100644
--- a/modules/by-name/pi/printing/module.nix
+++ b/modules/by-name/pr/printing/module.nix
@@ -19,6 +19,10 @@ in {
   };
 
   config = lib.mkIf cfg.enable {
+    soispha.impermanence.directories = [
+      "/var/lib/cups"
+    ];
+
     services.avahi = {
       enable = true;
       nssmdns4 = true;
@@ -32,23 +36,9 @@ in {
       webInterface = true;
 
       # deletes `/var/cache/cups`, `/var/lib/cups` and `/var/spool/cups` on cups startup
-      stateless = true;
+      stateless = false;
 
       drivers = [];
     };
-
-    hardware = {
-      printers = {
-        ensurePrinters = [
-          {
-            name = "Brother";
-            description = "Brother DCP-9022CDW";
-            model = "everywhere";
-            deviceUri = "dnssd://Brother%20DCP-9022CDW._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055c773bcf";
-          }
-        ];
-        ensureDefaultPrinter = "Brother";
-      };
-    };
   };
 }