about summary refs log tree commit diff
path: root/users/fcuny/desktop/trust
diff options
context:
space:
mode:
Diffstat (limited to 'users/fcuny/desktop/trust')
-rw-r--r--users/fcuny/desktop/trust/default.nix10
-rw-r--r--users/fcuny/desktop/trust/git.nix8
-rw-r--r--users/fcuny/desktop/trust/keyring.nix5
-rw-r--r--users/fcuny/desktop/trust/pass.nix8
-rw-r--r--users/fcuny/desktop/trust/pgp.nix14
5 files changed, 45 insertions, 0 deletions
diff --git a/users/fcuny/desktop/trust/default.nix b/users/fcuny/desktop/trust/default.nix
new file mode 100644
index 0000000..d881926
--- /dev/null
+++ b/users/fcuny/desktop/trust/default.nix
@@ -0,0 +1,10 @@
+{ config, lib, pkgs, ... }:
+
+{
+  imports = [
+    ./git.nix
+    ./keyring.nix
+    ./pass.nix
+    ./pgp.nix
+  ];
+}
diff --git a/users/fcuny/desktop/trust/git.nix b/users/fcuny/desktop/trust/git.nix
new file mode 100644
index 0000000..52607a3
--- /dev/null
+++ b/users/fcuny/desktop/trust/git.nix
@@ -0,0 +1,8 @@
+{
+  programs.git = {
+    signing = {
+      signByDefault = true;
+      key = "23348B57F01D4234B5CFBA0923208AC01EB6EEA1";
+    };
+  };
+}
diff --git a/users/fcuny/desktop/trust/keyring.nix b/users/fcuny/desktop/trust/keyring.nix
new file mode 100644
index 0000000..222448a
--- /dev/null
+++ b/users/fcuny/desktop/trust/keyring.nix
@@ -0,0 +1,5 @@
+{ config, lib, pkgs, ... }:
+
+{
+  services.gnome.gnome-keyring.enable = true;
+}
diff --git a/users/fcuny/desktop/trust/pass.nix b/users/fcuny/desktop/trust/pass.nix
new file mode 100644
index 0000000..d430ec8
--- /dev/null
+++ b/users/fcuny/desktop/trust/pass.nix
@@ -0,0 +1,8 @@
+{ pkgs, config, ... }:
+
+{
+  programs.password-store.enable = true;
+
+  programs.password-store.settings.PASSWORD_STORE_DIR =
+    "${config.xdg.dataHome}/password-store";
+}
diff --git a/users/fcuny/desktop/trust/pgp.nix b/users/fcuny/desktop/trust/pgp.nix
new file mode 100644
index 0000000..0d59837
--- /dev/null
+++ b/users/fcuny/desktop/trust/pgp.nix
@@ -0,0 +1,14 @@
+{ config, lib, pkgs, ... }:
+
+{
+  services.gpg-agent = {
+    enable = true;
+    enableSshSupport = true;
+    pinentryFlavor = "gnome3";
+  };
+
+  programs.gpg = {
+    enable = true;
+  };
+}
+