about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-08-27 15:39:48 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-09-06 09:40:17 -0400
commit792444af8402cacb94d7ec4c58adba9e36ef8cb2 (patch)
tree95b1aa71e9f70bece4a3bf64391da82d310d69ae /nixos/modules/programs
parentce67c2ef59241e6dc6cdce781ad7adcbd0918fd9 (diff)
downloadnixlib-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar
nixlib-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.gz
nixlib-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.bz2
nixlib-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.lz
nixlib-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.xz
nixlib-792444af8402cacb94d7ec4c58adba9e36ef8cb2.tar.zst
nixlib-792444af8402cacb94d7ec4c58adba9e36ef8cb2.zip
nixos/system-config-printer: init
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/system-config-printer.nix32
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 000000000000..34592dd7064b
--- /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;
+
+  };
+
+}