about summary refs log tree commit diff stats
path: root/home-manager/config/gpg
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-04-09 16:43:42 +0200
committerSoispha <soispha@vhack.eu>2023-04-09 21:20:43 +0200
commit313c8b54cbb5fb1543629c0301d6e509fcd800cd (patch)
tree74f6962a52a492a18e5a6bfa2edd508db860a618 /home-manager/config/gpg
parentDocs(TODO): Update (diff)
downloadnixos-config-313c8b54cbb5fb1543629c0301d6e509fcd800cd.tar.gz
nixos-config-313c8b54cbb5fb1543629c0301d6e509fcd800cd.zip
Feat(hm/conf): Add gpg support
Diffstat (limited to 'home-manager/config/gpg')
-rw-r--r--home-manager/config/gpg/default.nix20
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
+