Fix pinentry for gpg
This commit is contained in:
parent
014608fe7a
commit
5da3d8010f
2 changed files with 13 additions and 1 deletions
|
@ -14,7 +14,7 @@ in {
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
xfce.thunar-archive-plugin
|
xfce.thunar-archive-plugin
|
||||||
xfce.xfce4-appfinder # xfce.thunar-volman # needed?
|
xfce.xfce4-appfinder # xfce.thunar-volman # needed?
|
||||||
pinentry-gtk2 # Required by gnupg
|
pinentry-rofi # Required by gnupg
|
||||||
qt5.qtwayland # Required for qt applications
|
qt5.qtwayland # Required for qt applications
|
||||||
];
|
];
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
|
@ -35,6 +35,18 @@
|
||||||
enableScDaemon = true;
|
enableScDaemon = true;
|
||||||
enableSshSupport = true;
|
enableSshSupport = true;
|
||||||
enableExtraSocket = true;
|
enableExtraSocket = true;
|
||||||
|
pinentryFlavor = null;
|
||||||
|
extraConfig = let
|
||||||
|
pinentryBemenu = pkgs.writeShellApplication {
|
||||||
|
name = "pinentry-bemenu-with-env";
|
||||||
|
text = ''
|
||||||
|
PATH="$PATH:${pkgs.coreutils}/bin:${pkgs.bemenu}/bin"
|
||||||
|
"${pkgs.pinentry-bemenu}/bin/pinentry-bemenu" "$@"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in ''
|
||||||
|
pinentry-program ${pinentryBemenu}/bin/pinentry-bemenu-with-env
|
||||||
|
'';
|
||||||
sshKeys = [
|
sshKeys = [
|
||||||
"99DFB0F28CF9420A2D6383139E86814A1568C81B" # 0x8193A5D218B553DD / fabian.hauser@threema.ch
|
"99DFB0F28CF9420A2D6383139E86814A1568C81B" # 0x8193A5D218B553DD / fabian.hauser@threema.ch
|
||||||
"638143D3F6421377E9D4C7F1D2EDC5AA0A860351" # 0x3E957C9C8CB5D6B2 / fabian.hauser@qo.is
|
"638143D3F6421377E9D4C7F1D2EDC5AA0A860351" # 0x3E957C9C8CB5D6B2 / fabian.hauser@qo.is
|
||||||
|
|
Loading…
Add table
Reference in a new issue