Consolidate printer config and enable simple-scan

Remove per‑host printers.nix and merge printing settings into host
variables.
Add simple-scan package and enable it for desktop and laptop hosts.
Disable simple-scan for the default host.
Enable SANE daemon and expose its libraries in fish init.
Open required UDP ports 5353 and 54925 in network module.
This commit is contained in:
2026-07-09 18:49:51 +02:00
parent 7b48789251
commit f8ffcba766
14 changed files with 72 additions and 54 deletions
+2
View File
@@ -34,6 +34,8 @@
}
];
allowedUDPPorts = [
5353
54925
59010
59011
];
+1
View File
@@ -76,6 +76,7 @@
notify = notify-client;
boxes = gnome-boxes;
switcheroo = switcheroo;
simpleScan = simple-scan;
};
in {
imports = builtins.attrValues (builtins.mapAttrs mkPackage packages);
+7 -3
View File
@@ -31,8 +31,12 @@
ipp-usb.enable = true;
};
hardware.printers = lib.mkIf printEnable {
ensureDefaultPrinter = ensureDefaultPrinter;
ensurePrinters = ensurePrinters;
hardware = lib.mkIf printEnable {
printers = {
ensureDefaultPrinter = ensureDefaultPrinter;
ensurePrinters = ensurePrinters;
};
sane.enable = true;
};
}
+3
View File
@@ -15,6 +15,9 @@
set fish_greeting
# fastfetch
'';
shellInit = ''
set -gx LD_LIBRARY_PATH /etc/sane-libs $LD_LIBRARY_PATH
'';
};
nix-your-shell = {