split direnv, git, and gpg into modules

also removed clipmenu
also removed programs.feh, the extra options aren't needed
This commit is contained in:
LavaDesu 2021-07-15 20:52:35 +07:00
parent d272ea161b
commit bffc08df3a
Signed by: cilly
GPG key ID: 6500251E087653C9
4 changed files with 36 additions and 37 deletions

10
modules/user/gpg.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, enableGUI, ... }: {
programs.gpg = {
enable = true;
homedir = "${config.xdg.dataHome}/gnupg";
};
services.gpg-agent = {
enable = true;
pinentryFlavor = if enableGUI then "gnome3" else "tty";
};
}