-
Notifications
You must be signed in to change notification settings - Fork 111
/
secrets.nix
46 lines (39 loc) · 1 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
{ config, pkgs, agenix, secrets, ... }:
let user = "dustin"; in
{
age.identityPaths = [
"/home/${user}/.ssh/id_ed25519"
];
age.secrets."syncthing-cert" = {
symlink = true;
path = "/home/${user}/.config/syncthing/cert.pem";
file = "${secrets}/felix-syncthing-cert.age";
mode = "600";
owner = "${user}";
group = "users";
};
age.secrets."syncthing-key" = {
symlink = true;
path = "/home/{$user}/.config/syncthing/key.pem";
file = "${secrets}/felix-syncthing-key.age";
mode = "600";
owner = "${user}";
group = "users";
};
age.secrets."github-ssh-key" = {
symlink = false;
path = "/home/${user}/.ssh/id_github";
file = "${secrets}/github-ssh-key.age";
mode = "600";
owner = "${user}";
group = "wheel";
};
age.secrets."github-signing-key" = {
symlink = false;
path = "/home/${user}/.ssh/pgp_github.key";
file = "${secrets}/github-signing-key.age";
mode = "600";
owner = "${user}";
group = "wheel";
};
}