aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/pi
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-26 14:17:46 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-26 14:17:46 +0200
commit1085ca5c51c281592c9c5b02af07c1b31d5feff0 (patch)
tree11bbcd2d615ab615e0789b6f38018fee2c535028 /modules/by-name/pi
parentmodules/river/keymap: Provide a quicker way to switch between common modes (diff)
downloadnixos-config-1085ca5c51c281592c9c5b02af07c1b31d5feff0.zip
modules/printing: Make printer config state-full
The printer can be offline when starting the system, or it can be otherwise unreachable.
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";
- };
- };
};
}