diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-08-27 15:39:48 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-09-06 09:40:17 -0400 |
commit | 792444af8402cacb94d7ec4c58adba9e36ef8cb2 (patch) | |
tree | 95b1aa71e9f70bece4a3bf64391da82d310d69ae /nixos/modules/services/desktops | |
parent | ce67c2ef59241e6dc6cdce781ad7adcbd0918fd9 (diff) | |
download | nixpkgs-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar nixpkgs-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.gz nixpkgs-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.bz2 nixpkgs-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.lz nixpkgs-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.xz nixpkgs-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.zst nixpkgs-792444af8402cacb94d7ec4c58adba9e36ef8cb2.zip |
nixos/system-config-printer: init
Diffstat (limited to 'nixos/modules/services/desktops')
-rw-r--r-- | nixos/modules/services/desktops/system-config-printer.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/system-config-printer.nix b/nixos/modules/services/desktops/system-config-printer.nix new file mode 100644 index 00000000000..8a80be266b2 --- /dev/null +++ b/nixos/modules/services/desktops/system-config-printer.nix @@ -0,0 +1,38 @@ +{ config, pkgs, lib, ... }: + +with lib; + +{ + + ###### interface + + options = { + + services.system-config-printer = { + + enable = mkEnableOption "system-config-printer, a service for CUPS administration used by printing interfaces"; + + }; + + }; + + + ###### implementation + + config = mkIf config.services.system-config-printer.enable { + + services.dbus.packages = [ + pkgs.system-config-printer + ]; + + systemd.packages = [ + pkgs.system-config-printer + ]; + + services.udev.packages = [ + pkgs.system-config-printer + ]; + + }; + +} |