diff options
author | Jascha Geerds <jg@ekby.de> | 2015-08-14 00:33:33 +0200 |
---|---|---|
committer | Jascha Geerds <jg@ekby.de> | 2015-08-14 00:33:33 +0200 |
commit | c2e593d142b16b08b3b2c1eb9795362a630b9086 (patch) | |
tree | b4fe367934a89bad7f2c9eb8100c97dbcb368c78 | |
parent | c0e03e4647d19217aab115efde1f4db1a2525696 (diff) | |
parent | 7d414a064658a7fb87db94ca3d4a34e868c850d6 (diff) | |
download | nixlib-c2e593d142b16b08b3b2c1eb9795362a630b9086.tar nixlib-c2e593d142b16b08b3b2c1eb9795362a630b9086.tar.gz nixlib-c2e593d142b16b08b3b2c1eb9795362a630b9086.tar.bz2 nixlib-c2e593d142b16b08b3b2c1eb9795362a630b9086.tar.lz nixlib-c2e593d142b16b08b3b2c1eb9795362a630b9086.tar.xz nixlib-c2e593d142b16b08b3b2c1eb9795362a630b9086.tar.zst nixlib-c2e593d142b16b08b3b2c1eb9795362a630b9086.zip |
Merge pull request #9239 from bjornfor/fix-cups-find-printer
nixos: add services.printing.snmpConf option
-rw-r--r-- | nixos/modules/services/printing/cupsd.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix index e743aa8a3236..69c76cf97cfd 100644 --- a/nixos/modules/services/printing/cupsd.nix +++ b/nixos/modules/services/printing/cupsd.nix @@ -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 { type = types.listOf types.path; example = literalExample "[ pkgs.splix ]"; @@ -199,6 +210,7 @@ in environment.etc."cups/cups-files.conf".text = cfg.cupsFilesConf; environment.etc."cups/cupsd.conf".text = cfg.cupsdConf; environment.etc."cups/cups-browsed.conf".text = cfg.browsedConf; + environment.etc."cups/snmp.conf".text = cfg.snmpConf; services.dbus.packages = [ cups ]; |