mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 01:42:55 +00:00
initial gpg setup
This commit is contained in:
parent
cc974cb013
commit
852385ef4d
@ -39,6 +39,9 @@
|
|||||||
in {
|
in {
|
||||||
|
|
||||||
# Define my systems
|
# 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 = {
|
nixosConfigurations = {
|
||||||
desktop =
|
desktop =
|
||||||
import ./hosts/desktop { inherit nixpkgs home-manager nur globals; };
|
import ./hosts/desktop { inherit nixpkgs home-manager nur globals; };
|
||||||
|
@ -20,6 +20,7 @@ nixpkgs.lib.nixosSystem {
|
|||||||
../../modules/shell
|
../../modules/shell
|
||||||
../../modules/gaming
|
../../modules/gaming
|
||||||
../../modules/services/keybase.nix
|
../../modules/services/keybase.nix
|
||||||
|
../../modules/services/gnupg.nix
|
||||||
../../modules/applications/firefox.nix
|
../../modules/applications/firefox.nix
|
||||||
../../modules/applications/alacritty.nix
|
../../modules/applications/alacritty.nix
|
||||||
../../modules/applications/media.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