aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/secrets.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-01-16 18:24:01 -0800
committerPreston Pan <ret2pop@gmail.com>2025-01-16 18:24:01 -0800
commit2a4a4e2c42257bb25789ec3be6bc5a88f0eab7b5 (patch)
treeb3cf871d924e1ba6e8a790dd6dc8910e03083865 /nix/modules/secrets.nix
parent6f86d8f277229c41a5d5f45e6a8e9dd36d4e16a8 (diff)
Nix literate configuration set up in monorepoHEADmain
Diffstat (limited to 'nix/modules/secrets.nix')
-rw-r--r--nix/modules/secrets.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nix/modules/secrets.nix b/nix/modules/secrets.nix
new file mode 100644
index 0000000..29e8c4c
--- /dev/null
+++ b/nix/modules/secrets.nix
@@ -0,0 +1,20 @@
+{ config, ... }:
+{
+ sops = {
+ defaultSopsFile = ../../secrets/secrets.yaml;
+ age = {
+ keyFile = "/home/${config.monorepo.vars.userName}/.ssh/keys.txt";
+ };
+ secrets.mail = {
+ format = "yaml";
+ path = "${config.sops.defaultSymlinkPath}/mail";
+ };
+ secrets.digikey = {
+ format = "yaml";
+ path = "${config.sops.defaultSymlinkPath}/digikey";
+ };
+
+ defaultSymlinkPath = "/run/user/1000/secrets";
+ defaultSecretsMountPoint = "/run/user/1000/secrets.d";
+ };
+}