summaryrefslogtreecommitdiff
path: root/nix/modules/secrets.nix
blob: 29504f66b8b0e4776afb420f47cbda0044e3f98e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ config, ... }:
{
  sops = {
    defaultSopsFile = ../../secrets/secrets.yaml;
    age = {
      keyFile = "/home/${config.monorepo.vars.userName}/.ssh/keys.txt";
    };
    secrets = {
      mail = {
        format = "yaml";
        sopsFile = config.sops.defaultSopsFile;
#        sopsFile = ../../secrets/secrets.yaml;
        path = "${config.sops.defaultSymlinkPath}/mail";
      };
      cloudflare-dns = {
        format = "yaml";
        sopsFile = config.sops.defaultSopsFile;
        path = "${config.sops.defaultSymlinkPath}/cloudflare-dns";
      };
      digikey = {
        format = "yaml";
        sopsFile = config.sops.defaultSopsFile;
        path = "${config.sops.defaultSymlinkPath}/digikey";
      };
      dn42 = {
        format = "yaml";
        sopsFile = config.sops.defaultSopsFile;
#        sopsFile = ../../secrets/secrets.yaml;
        path = "${config.sops.defaultSymlinkPath}/dn42";
      };
      znc = {
        format = "yaml";
        sopsFile = config.sops.defaultSopsFile;
#        sopsFile = ../../secrets/secrets.yaml;
        path = "${config.sops.defaultSymlinkPath}/znc";
      };
      znc_password_salt = {
        format = "yaml";
        sopsFile = config.sops.defaultSopsFile;
#        sopsFile = ../../secrets/secrets.yaml;
        path = "${config.sops.defaultSymlinkPath}/znc_password_salt";
      };

      znc_password_hash = {
        format = "yaml";
        sopsFile = config.sops.defaultSopsFile;
#        sopsFile = ../../secrets/secrets.yaml;
        path = "${config.sops.defaultSymlinkPath}/znc_password_hash";
      };

      matrix_bridge = {
        format = "yaml";
        sopsFile = config.sops.defaultSopsFile;
#        sopsFile = ../../secrets/secrets.yaml;
        path = "${config.sops.defaultSymlinkPath}/matrix_bridge";
      };
    };
    defaultSymlinkPath = "/run/user/1000/secrets";
    defaultSecretsMountPoint = "/run/user/1000/secrets.d";
  };
}