Merge pull request #39612 from bgamari/cupsd-loglevel

cupsd: Introduce services.printing.logLevel option

Changed files
+12 -3
nixos
modules
services
printing
+12 -3
nixos/modules/services/printing/cupsd.nix
···
WebInterface ${if cfg.webInterface then "Yes" else "No"}
+
LogLevel ${cfg.logLevel}
+
${cfg.extraConf}
'';
···
'';
};
+
logLevel = mkOption {
+
type = types.str;
+
default = "info";
+
example = "debug";
+
description = ''
+
Specifies the cupsd logging verbosity.
+
'';
+
};
+
extraFilesConf = mkOption {
type = types.lines;
default = "";
···
example =
''
BrowsePoll cups.example.com
-
LogLevel debug
+
MaxCopies 42
'';
description = ''
Extra contents of the configuration file of the CUPS daemon
···
services.printing.extraConf =
''
-
LogLevel info
-
DefaultAuthType Basic
<Location />