summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-09-23 15:55:43 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-09-23 15:55:43 +0200
commit10e18e2b8d96d2742d070a652ee2aa656e8b0780 (patch)
treea7c324cbb3cf0de72ade1e85cb235f526848372a
parenta94ea20f0a7e639dd1a37e8b7c741a3b022049fc (diff)
downloadnixos-10e18e2b8d96d2742d070a652ee2aa656e8b0780.tar
nixos-10e18e2b8d96d2742d070a652ee2aa656e8b0780.tar.gz
nixos-10e18e2b8d96d2742d070a652ee2aa656e8b0780.tar.bz2
nixos-10e18e2b8d96d2742d070a652ee2aa656e8b0780.tar.xz
nixos-10e18e2b8d96d2742d070a652ee2aa656e8b0780.zip
Revert "move scripting to own derivation"
This reverts commit a17c9c5dcb9c958683ab571ec1261ce459217569.
-rw-r--r--users/gkleen@hel.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/users/gkleen@hel.nix b/users/gkleen@hel.nix
index fb65e343..fa4989e2 100644
--- a/users/gkleen@hel.nix
+++ b/users/gkleen@hel.nix
@@ -10,18 +10,16 @@
10 ''; 10 '';
11 }; 11 };
12 gnupg = pkgs.lib.overrideDerivation pkgs.gnupg (oldAttrs: { 12 gnupg = pkgs.lib.overrideDerivation pkgs.gnupg (oldAttrs: {
13 buildInputs = [ pkgs.makeWrapper ];
14 postBuild = ''
15 wrapProgram $out/bin/gpg \
16 --run "while ! systemctl --user show-environment | grep -qE '^DISPLAY='; do sleep 1; done" \
17 --run "systemctl --user import-environment DISPLAY"
18 '';
13 postInstall = '' 19 postInstall = ''
14 ln -s $out/bin/gpg2 $out/bin/gpg 20 ln -s $out/bin/gpg2 $out/bin/gpg
15 ''; 21 '';
16 }); 22 });
17 gnupg-script = with pkgs; writeScript "gnupg-script" ''
18 #!${stdenv.shell}
19
20 while ! systemctl --user show-environment | grep -qE '^DISPLAY='; do sleep 1; done
21
22 systemctl --user import-environment DISPLAY
23 exec ${gnupg}/bin/gpg2 --daemon
24 '';
25 } // (import ../utils/nix/default.nix) {}; 23 } // (import ../utils/nix/default.nix) {};
26 24
27 allowUnfree = true; 25 allowUnfree = true;