diff options
author | sefidel <contact@sefidel.net> | 2022-02-14 17:06:54 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2022-02-14 17:06:54 +0900 |
commit | 975fa49ca3e719c4a59db62cd41a72b957e52d23 (patch) | |
tree | 547dba3f9ad69ffe25d4ef4e91d4c25987399fcf | |
parent | a37b30ffd61fcf6389edbace5771857d5aa1e3bd (diff) | |
download | nixrc-975fa49ca3e719c4a59db62cd41a72b957e52d23.tar.gz nixrc-975fa49ca3e719c4a59db62cd41a72b957e52d23.zip |
chore: move gpg-related settings to base
-rw-r--r-- | home/profiles/base/default.nix | 12 | ||||
-rw-r--r-- | home/profiles/development/default.nix | 7 |
2 files changed, 12 insertions, 7 deletions
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix index 9c97d5f..5e5cbcb 100644 --- a/home/profiles/base/default.nix +++ b/home/profiles/base/default.nix @@ -81,6 +81,8 @@ in # Normal pkgs.bottom pkgs.fd + # Fix gpg not recognizing foot terminfo + pkgs.foot.terminfo pkgs.fzf pkgs.hydra-check pkgs.libnotify @@ -115,6 +117,7 @@ in direnv.nix-direnv.enable = true; exa.enable = true; exa.enableAliases = true; + gpg.enable = true; home-manager.enable = true; htop.enable = true; @@ -239,6 +242,15 @@ in settings = import ./config/dunst.nix { inherit neotheme; }; }; + gpg-agent = { + enable = true; + pinentryFlavor = "gtk2"; + defaultCacheTtl = 3600; + defaultCacheTtlSsh = 3600; + maxCacheTtl = 86400; + maxCacheTtlSsh = 86400; + }; + swayidle = { enable = true; events = [ diff --git a/home/profiles/development/default.nix b/home/profiles/development/default.nix index c8366ae..7dc855b 100644 --- a/home/profiles/development/default.nix +++ b/home/profiles/development/default.nix @@ -10,7 +10,6 @@ in }; config = lib.mkIf cfg.enable { - programs.gpg.enable = true; programs.git = { enable = true; package = pkgs.gitFull; @@ -70,8 +69,6 @@ in pkgs.bfg-repo-cleaner pkgs.diffoscopeMinimal pkgs.du-dust - # Fix gpg not recognizing foot terminfo - pkgs.foot.terminfo # TODO: https://github.com/cli/cli/issues/4955 pkgs.gh pkgs.go @@ -88,10 +85,6 @@ in pkgs.xh ]; - services.gpg-agent = { - enable = true; - pinentryFlavor = "curses"; - }; }; } |