summaryrefslogtreecommitdiff
path: root/hosts/common/packages.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-15 03:36:58 -0500
committerseth <[email protected]>2023-02-15 03:36:58 -0500
commite97ba17b86ed4cdc8df673dfc68b447416a74b55 (patch)
tree8824d1e22a7abe313ba035001da759075ad5fe58 /hosts/common/packages.nix
parent2633e7bcf3b42447d88dbb5645c2f7d0cb9a1418 (diff)
fix gpg-agent and cleanup a few things
Diffstat (limited to 'hosts/common/packages.nix')
-rw-r--r--hosts/common/packages.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/hosts/common/packages.nix b/hosts/common/packages.nix
index 0cf093c..a2f5c15 100644
--- a/hosts/common/packages.nix
+++ b/hosts/common/packages.nix
@@ -7,22 +7,30 @@
if config.sys.gui.enable
then with pkgs; [firefox]
else [];
+
+ pinentry =
+ if config.sys.desktop == "gnome"
+ then pkgs.pinentry-gnome
+ else pkgs.pinentry-curses;
in {
environment.systemPackages = with pkgs;
[
git
neofetch
- pinentry-curses
python310
vim
]
- ++ extraPkgs;
+ ++ extraPkgs
+ ++ [pinentry];
programs = {
gnupg = {
agent = {
enable = true;
- pinentryFlavor = "curses";
+ pinentryFlavor =
+ if config.sys.desktop == "gnome"
+ then "gnome3"
+ else "curses";
};
};
};