summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-05-04 18:44:33 +0200
committersils <sils@sils.li>2023-05-04 18:44:33 +0200
commit37946f75cb4f7431b116702d2b275fe4c27e7c7a (patch)
treed093c56f86cf23140a7ba13665c9e75de12a044f
parentChore(flake): Update (diff)
downloadnix-config-37946f75cb4f7431b116702d2b275fe4c27e7c7a.tar.gz
nix-config-37946f75cb4f7431b116702d2b275fe4c27e7c7a.zip
Feat(users/sils/gpg): Add gpg
Diffstat (limited to '')
-rw-r--r--users/sils/default.nix5
-rw-r--r--users/sils/gpg/default.nix9
2 files changed, 13 insertions, 1 deletions
diff --git a/users/sils/default.nix b/users/sils/default.nix
index 5240fa9..c5fa572 100644
--- a/users/sils/default.nix
+++ b/users/sils/default.nix
@@ -3,7 +3,10 @@
   system,
   ...
 }: {
-  imports = [./packages];
+  imports = [
+    ./packages
+    ./gpg
+  ];
 
   home = {
     username = "sils";
diff --git a/users/sils/gpg/default.nix b/users/sils/gpg/default.nix
new file mode 100644
index 0000000..7c592d0
--- /dev/null
+++ b/users/sils/gpg/default.nix
@@ -0,0 +1,9 @@
+{config, ...}: {
+  programs.gpg = {
+    enable = true;
+    homedir = "${config.xdg.dataHome}/gnupg";
+  };
+  services.gpg-agent = {
+    enable = true;
+  };
+}