mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
nixos/cupsd: Introduce services.printing.logLevel option
Previously we indirectly suggested that the user use services.printing.extraConf to set this, but this doesn't work with the default merge ordering. Fix this by making it an independent option. Fixes #39611.
This commit is contained in:
parent
bea11a34fb
commit
192352ff2f
1 changed files with 12 additions and 3 deletions
|
@ -83,6 +83,8 @@ let
|
|||
|
||||
WebInterface ${if cfg.webInterface then "Yes" else "No"}
|
||||
|
||||
LogLevel ${cfg.logLevel}
|
||||
|
||||
${cfg.extraConf}
|
||||
'';
|
||||
|
||||
|
@ -165,6 +167,15 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
logLevel = mkOption {
|
||||
type = types.str;
|
||||
default = "info";
|
||||
example = "debug";
|
||||
description = ''
|
||||
Specifies the cupsd logging verbosity.
|
||||
'';
|
||||
};
|
||||
|
||||
extraFilesConf = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
|
@ -180,7 +191,7 @@ in
|
|||
example =
|
||||
''
|
||||
BrowsePoll cups.example.com
|
||||
LogLevel debug
|
||||
MaxCopies 42
|
||||
'';
|
||||
description = ''
|
||||
Extra contents of the configuration file of the CUPS daemon
|
||||
|
@ -345,8 +356,6 @@ in
|
|||
|
||||
services.printing.extraConf =
|
||||
''
|
||||
LogLevel info
|
||||
|
||||
DefaultAuthType Basic
|
||||
|
||||
<Location />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue