* CUPS: use /etc/cups rather than ${cups}/etc/cups as the ServerRoot,
because CUPS modifies files in the ServerRoot directory. Most importantly, it stores printer configuration there. Previously the CUPS server modified the files under ${cups}/etc/cups, which is impure and caused all configured printers to disappear any time CUPS was upgraded. svn path=/nixos/trunk/; revision=13892
This commit is contained in:
parent
016e4dc5c3
commit
a3f778c23d
@ -40,7 +40,10 @@ let
|
|||||||
Listen localhost:631
|
Listen localhost:631
|
||||||
Listen /var/run/cups/cups.sock
|
Listen /var/run/cups/cups.sock
|
||||||
|
|
||||||
ServerRoot ${cups}/etc/cups
|
# Note: we can't use ${cups}/etc/cups as the ServerRoot, since
|
||||||
|
# CUPS will write in the ServerRoot when e.g. adding new printers
|
||||||
|
# through the web interface.
|
||||||
|
ServerRoot /etc/cups
|
||||||
|
|
||||||
ServerBin ${bindir}/lib/cups
|
ServerBin ${bindir}/lib/cups
|
||||||
|
|
||||||
@ -101,12 +104,18 @@ in
|
|||||||
{
|
{
|
||||||
name = "cupsd";
|
name = "cupsd";
|
||||||
|
|
||||||
extraPath = [
|
extraPath = [cups];
|
||||||
cups
|
|
||||||
|
extraEtc = [
|
||||||
|
# CUPS expects the following files in its ServerRoot.
|
||||||
|
{ source = "${cups}/etc/cups/mime.convs";
|
||||||
|
target = "cups/mime.convs";
|
||||||
|
}
|
||||||
|
{ source = "${cups}/etc/cups/mime.types";
|
||||||
|
target = "cups/mime.types";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
job = ''
|
job = ''
|
||||||
description "CUPS printing daemon"
|
description "CUPS printing daemon"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user