initial gpg setup

This commit is contained in:
Noah Masur 2022-05-09 22:55:10 -04:00
parent cc974cb013
commit 852385ef4d
3 changed files with 19 additions and 0 deletions

View File

@ -39,6 +39,9 @@
in {
# Define my systems
# You can load it from an empty system with:
# nix-shell -p nixFlakes
# sudo nixos-rebuild switch --flake github:nmasur/dotfiles#desktop
nixosConfigurations = {
desktop =
import ./hosts/desktop { inherit nixpkgs home-manager nur globals; };

View File

@ -20,6 +20,7 @@ nixpkgs.lib.nixosSystem {
../../modules/shell
../../modules/gaming
../../modules/services/keybase.nix
../../modules/services/gnupg.nix
../../modules/applications/firefox.nix
../../modules/applications/alacritty.nix
../../modules/applications/media.nix

View File

@ -0,0 +1,15 @@
{ config, ... }: {
home-manager.users.${config.user} = {
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
defaultCacheTtl = 86400; # Resets when used
defaultCacheTtlSsh = 86400; # Resets when used
maxCacheTtl = 34560000; # Can never reset
maxCacheTtlSsh = 34560000; # Can never reset
pinentryFlavor = "tty";
};
};
}