feat: gpg configuration

Changed files
+14 -6
programs
-4
configuration.nix
···
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
#programs.mtr.enable = true;
-
# programs.gnupg.agent = {
-
# enable = true;
-
# enableSSHSupport = true;
-
# };
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
+2
programs/default.nix
···
./ssh.nix
./scm.nix
+
./gpg.nix
+
./misc.nix
];
}
+9
programs/gpg.nix
···
+
{ pkgs, ... }:
+
+
{
+
environment.systemPackages = with pkgs; [ gnupg pinentry ];
+
+
programs.gnupg.agent.enable = true;
+
# ideally this should be set automatically but in case that doesn't work
+
#programs.gnupg.agent.pinentryFlavor = "curses"; # we don't have a gui.
+
}
+3 -2
programs/misc.nix
···
environment.systemPackages = with pkgs; [
wget
curl
+
ripgrep
-
gnupg
-
pinentry
+
ack
+
git-crypt
];
}