mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 12:15:38 +00:00
initial gpg setup
This commit is contained in:
parent
cc974cb013
commit
852385ef4d
@ -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; };
|
||||
|
@ -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
|
||||
|
15
modules/services/gnupg.nix
Normal file
15
modules/services/gnupg.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user