about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2015-12-18 14:31:38 +0100
committerProfpatsch <mail@profpatsch.de>2015-12-18 14:55:30 +0100
commite3eaae9bfd57e159781fe02a59ac6ef5fec7481f (patch)
tree5e008bb40d61f9cb0d1c0ea13c09d7247572ea3a /machines/profpatsch
parentc0a50406adbceda82650b15d371e176857659236 (diff)
katara: offlineimap wrapper (for gpg unlock)
Diffstat (limited to 'machines/profpatsch')
-rw-r--r--machines/profpatsch/katara.nix7
-rw-r--r--machines/profpatsch/pkgs.nix8
2 files changed, 10 insertions, 5 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix
index af1db3f3..4488867b 100644
--- a/machines/profpatsch/katara.nix
+++ b/machines/profpatsch/katara.nix
@@ -1,10 +1,7 @@
 { config, pkgs, lib, ... }:
 let
 
-  offlineimapGPG = pkgs.offlineimap.overrideDerivation (old: {
-    propagatedBuildInputs = old.propagatedBuildInputs
-                         ++ lib.singleton pkgs.pythonPackages.pygpgme;
-  });
+  myPkgs = import ./pkgs.nix { inherit pkgs; };
 
   mytexlive = with pkgs.texlive; combine { inherit scheme-medium minted units collection-bibtexextra; };
 
@@ -150,7 +147,7 @@ in {
       ];
       mailPkgs = [
         elinks
-        offlineimapGPG
+        myPkgs.offlineimap
         mutt-with-sidebar # TODO mutt-kz
         msmtp
         notmuch
diff --git a/machines/profpatsch/pkgs.nix b/machines/profpatsch/pkgs.nix
new file mode 100644
index 00000000..9605cf2b
--- /dev/null
+++ b/machines/profpatsch/pkgs.nix
@@ -0,0 +1,8 @@
+{ pkgs }:
+{
+
+  offlineimap =  with pkgs; offlineimap.overrideDerivation (old: {
+    propagatedNativeBuildInputs = old.propagatedNativeBuildInputs ++ [ pythonPackages.pygpgme ];
+  });
+
+}