diff options
author | ene <ene@sils.li> | 2023-04-09 16:43:42 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-04-09 21:20:43 +0200 |
commit | 313c8b54cbb5fb1543629c0301d6e509fcd800cd (patch) | |
tree | 74f6962a52a492a18e5a6bfa2edd508db860a618 /home-manager/config/gpg/default.nix | |
parent | Docs(TODO): Update (diff) | |
download | nixos-config-313c8b54cbb5fb1543629c0301d6e509fcd800cd.tar.gz nixos-config-313c8b54cbb5fb1543629c0301d6e509fcd800cd.zip |
Feat(hm/conf): Add gpg support
Diffstat (limited to '')
-rw-r--r-- | home-manager/config/gpg/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/home-manager/config/gpg/default.nix b/home-manager/config/gpg/default.nix new file mode 100644 index 00000000..de6f7caa --- /dev/null +++ b/home-manager/config/gpg/default.nix @@ -0,0 +1,20 @@ +{ + config, + pkgs, + ... +}: { + programs.gpg = { + enable = true; + homedir = "${config.xdg.dataHome}/gnupg/onlykey"; + #mutableKeys = false; + #mutableTrust = false; + settings = { + # Hardware-based GPG configuration + agent-program = "/home/soispha/.local/share/gnupg/onlykey/run-agent.sh"; + default-key = "Soispha <soispha@vhack.eu>"; + # TODO add more + }; + }; +} +# vim: ts=2 + |