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/programs/system-config-printer.nix | |
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/programs/system-config-printer.nix')
-rw-r--r-- | nixos/modules/programs/system-config-printer.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixos/modules/programs/system-config-printer.nix b/nixos/modules/programs/system-config-printer.nix new file mode 100644 index 00000000000..34592dd7064 --- /dev/null +++ b/nixos/modules/programs/system-config-printer.nix @@ -0,0 +1,32 @@ +{ config, pkgs, lib, ... }: + +with lib; + +{ + + ###### interface + + options = { + + programs.system-config-printer = { + + enable = mkEnableOption "system-config-printer, a Graphical user interface for CUPS administration"; + + }; + + }; + + + ###### implementation + + config = mkIf config.programs.system-config-printer.enable { + + environment.systemPackages = [ + pkgs.system-config-printer + ]; + + services.system-config-printer.enable = true; + + }; + +} |