summary refs log tree commit diff stats
path: root/secrets/secrets.nix
blob: 1c10148f2c5a932e55a7ee8f04df8c630c01f35a (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
let
  users = {
    alan = [
      "age1se1qwz9tsr7fq6m7rh3fj44fh6vcth53x9lcff9jeangg43v66vznxus3vp5mz" # marvin age-plugin-se
    ];
  };

  machines = {
    linde = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHHdh3J7dEmh9G+CVmzFEC8/ont35ZXpCFcpLUO863vC";
  };

  secrets = with machines; {
    acme = [ linde ];

    redis-website = [ linde ];

    binarycache = [ linde ];
    paperless = [ linde ];
    powerdns = [ linde ];
    dex = [ linde ];
    golink = [ linde ];
    photoprism = [ linde ];
    cifs-photoprism = [ linde ];
    cifs-paperless = [ linde ];
  };
in
builtins.listToAttrs (
  map
    (secretName: {
      name = "${secretName}.age";
      value.publicKeys = secrets.${secretName} ++ users.alan;
    })
    (builtins.attrNames secrets)
)