about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-02-04 23:09:19 +0100
committerProfpatsch <mail@profpatsch.de>2016-02-04 23:11:20 +0100
commite2e7b217dd097c4d76833c9e71965fcd8081b92a (patch)
tree3ba37e63745ce49d01689ddf914086d9a1dc5d88
parent51a159577df38e9f28148b1cb001f7839f655446 (diff)
profpatsch/programs: add support for scanning
-rw-r--r--machines/profpatsch/katara.nix2
-rw-r--r--modules/module-list.nix1
-rw-r--r--modules/user/profpatsch/programs/scanning.nix13
3 files changed, 16 insertions, 0 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix
index 66ebab1e..1931763d 100644
--- a/machines/profpatsch/katara.nix
+++ b/machines/profpatsch/katara.nix
@@ -324,6 +324,8 @@ in {
     # friendly user shell
     programs.fish.enable = true;
 
+    vuizvui.user.profpatsch.programs.scanning.enable = true;
+
     #######
     # Misc
 
diff --git a/modules/module-list.nix b/modules/module-list.nix
index 3f23288b..a606acb3 100644
--- a/modules/module-list.nix
+++ b/modules/module-list.nix
@@ -21,4 +21,5 @@
   ./user/aszlig/services/slim
   ./user/aszlig/services/vlock
   ./user/aszlig/system/kernel.nix
+  ./user/profpatsch/programs/scanning.nix
 ]
diff --git a/modules/user/profpatsch/programs/scanning.nix b/modules/user/profpatsch/programs/scanning.nix
new file mode 100644
index 00000000..4e8bf2d4
--- /dev/null
+++ b/modules/user/profpatsch/programs/scanning.nix
@@ -0,0 +1,13 @@
+{ config, pkgs, lib, ... }:
+
+with lib;
+{
+  options.vuizvui.user.profpatsch.programs.scanning = {
+    enable = mkEnableOption "scanning & simple-scan";
+  };
+
+  config = mkIf config.vuizvui.user.profpatsch.programs.scanning.enable {
+    environment.systemPackages = [ pkgs.simple-scan ];
+    hardware.sane.enable = true;
+  };
+}