NixOS system configurations + dotfiles via home-manager
1{
2 local.desktops.grancel =
3 { pkgs, ... }:
4 {
5 programs.gnupg.agent.enable = true;
6 programs.gnupg.agent.pinentryPackage = pkgs.pinentry-curses;
7 programs.gnupg.agent.settings = {
8 default-cache-ttl-ssh = 3 * 60 * 60;
9 max-cache-ttl = 8 * 60 * 60;
10 };
11 };
12
13 flake.modules.hjem.grancel =
14 { config, pkgs, ... }:
15 {
16 packages = [
17 pkgs.pass
18 pkgs.gnupg
19 ];
20
21 environment.sessionVariables.PASSWORD_STORE_DIR = "${config.xdg.data.directory}/password-store";
22 environment.sessionVariables.GNUPGHOME = "${config.xdg.data.directory}/gnupg";
23
24 fish.interactiveShellInit = ''
25 set -gx GPG_TTY (tty)
26 ${pkgs.gnupg}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null
27 '';
28 };
29}