From 8d7cd6064d90cb4ed7682d0b68dbcd92576d832f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 23 Sep 2016 15:32:56 +0200 Subject: gnupg always needs X --- users/gkleen@hel.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/users/gkleen@hel.nix b/users/gkleen@hel.nix index 28548a84..14ffb73e 100644 --- a/users/gkleen@hel.nix +++ b/users/gkleen@hel.nix @@ -10,6 +10,10 @@ ''; }; gnupg = pkgs.lib.overrideDerivation pkgs.gnupg (oldAttrs: { + postBuild = '' + wrapProgram $out/bin/gpg \ + --run "while ! systemctl --user show-environment | grep -qE '^DISPLAY='; do sleep 1; done" + ''; postInstall = '' ln -s $out/bin/gpg2 $out/bin/gpg ''; @@ -20,7 +24,7 @@ chromium = { enableWideVine = true; - hiDPI = true; + enablePepperFlash = true; }; mpv = { -- cgit v1.2.3