Merge pull request #9239 from bjornfor/fix-cups-find-printer
nixos: add services.printing.snmpConf option
This commit is contained in:
commit
c2e593d142
@ -160,6 +160,17 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
snmpConf = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = ''
|
||||||
|
Address @LOCAL
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
The contents of <filename>/etc/cups/snmp.conf</filename>. See "man
|
||||||
|
cups-snmp.conf" for a complete description.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
drivers = mkOption {
|
drivers = mkOption {
|
||||||
type = types.listOf types.path;
|
type = types.listOf types.path;
|
||||||
example = literalExample "[ pkgs.splix ]";
|
example = literalExample "[ pkgs.splix ]";
|
||||||
@ -199,6 +210,7 @@ in
|
|||||||
environment.etc."cups/cups-files.conf".text = cfg.cupsFilesConf;
|
environment.etc."cups/cups-files.conf".text = cfg.cupsFilesConf;
|
||||||
environment.etc."cups/cupsd.conf".text = cfg.cupsdConf;
|
environment.etc."cups/cupsd.conf".text = cfg.cupsdConf;
|
||||||
environment.etc."cups/cups-browsed.conf".text = cfg.browsedConf;
|
environment.etc."cups/cups-browsed.conf".text = cfg.browsedConf;
|
||||||
|
environment.etc."cups/snmp.conf".text = cfg.snmpConf;
|
||||||
|
|
||||||
services.dbus.packages = [ cups ];
|
services.dbus.packages = [ cups ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user