nixos/cupsd: Set CUPS_DATADIR globally
This is used by some programs that need CUPS data files. For instance, print-manager looks here for printing test pages.
This commit is contained in:
parent
dd49cf711e
commit
04ea093eb6
|
@ -296,6 +296,10 @@ in
|
||||||
# gets loaded, and then cups cannot access the printers.
|
# gets loaded, and then cups cannot access the printers.
|
||||||
boot.blacklistedKernelModules = [ "usblp" ];
|
boot.blacklistedKernelModules = [ "usblp" ];
|
||||||
|
|
||||||
|
# Some programs like print-manager rely on this value to get
|
||||||
|
# printer test pages.
|
||||||
|
environment.sessionVariables.CUPS_DATADIR = "${bindir}/share/cups";
|
||||||
|
|
||||||
systemd.packages = [ cups.out ];
|
systemd.packages = [ cups.out ];
|
||||||
|
|
||||||
systemd.sockets.cups = mkIf cfg.startWhenNeeded {
|
systemd.sockets.cups = mkIf cfg.startWhenNeeded {
|
||||||
|
|
Loading…
Reference in New Issue