-
Notifications
You must be signed in to change notification settings - Fork 0
/
secrets.nix
89 lines (81 loc) · 1.66 KB
/
secrets.nix
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
let
# Users
reyu = "age1a0mk869v4lmcsy36rm432e9mfprsnsakhhyscl0p7uttrk583q3qlqm8j3";
# knownHosts
hosts = builtins.mapAttrs (_: x: x.publicKey) (
import ./modules/openssh/knownHosts.nix { self = ./.; }
);
# Hosts generating Lets Encrypt certs
acme = [
reyu
hosts.auth
hosts.ash-db
];
in
with hosts;
{
# Burrow
"hosts/burrow/secrets/romm.env".publicKeys = [
reyu
burrow
];
# Loki
"hosts/loki/secrets/davfs2".publicKeys = [
reyu
loki
];
"secrets/syncoid/ssh_key".publicKeys = [
reyu
loki
];
# Auth (Ash)
"hosts/hetzner/secrets/auth/ldap.keytab".publicKeys = [
reyu
auth
];
"hosts/hetzner/secrets/auth/ash/host.keytab".publicKeys = [
reyu
ash-db
];
"hosts/hetzner/secrets/auth/ash/psql.keytab".publicKeys = [
reyu
ash-db
];
"hosts/hetzner/secrets/auth/cachix-agent.token".publicKeys = [
reyu
auth
];
"hosts/hetzner/secrets/openldap/rootpw".publicKeys = [
reyu
auth
];
"hosts/hetzner/secrets/krb5/kdb5.stash".publicKeys = [
reyu
auth
];
# Database (Ash)
"hosts/hetzner/secrets/database/pg_hba_ldap".publicKeys = [
reyu
ash-db
];
"hosts/hetzner/secrets/database/ash/host.keytab".publicKeys = [
reyu
ash-db
];
"hosts/hetzner/secrets/database/ash/psql.keytab".publicKeys = [
reyu
ash-db
];
"hosts/hetzner/secrets/database/ash/cachix-agent.token".publicKeys = [
reyu
ash-db
];
# Shared
"secrets/acme/hetzner_apikey".publicKeys = acme;
"secrets/networks/wpa_supplicant.env".publicKeys = [
reyu
traveler
];
# Storage
"hosts/hetzner/secrets/krb5/master_password".publicKeys = [ reyu ];
}