blob: c0968fd09525a4af12a6975e5520afc10c6ff5a1 (
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
|
{
flake.modules.nixos.sachiel =
{ inputs, ... }:
{
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
defaultSopsFile = inputs.self + /secrets/secrets.yaml;
age.keyFile = "/etc/sops/age_key";
secrets = {
"nextcloud-secrets" = {
owner = "nextcloud";
group = "nextcloud";
mode = "0400";
};
"nextcloud-admin-pass" = {
owner = "root";
mode = "0600";
};
# SSL certificates
"cert_fullchain" = {
owner = "nginx";
group = "nginx";
};
"cert_private" = {
owner = "nginx";
group = "nginx";
};
# Backup configuration
"borgbase_ssh_key" = {
owner = "root";
mode = "0600";
};
"borg_repo" = {
owner = "root";
mode = "0600";
};
};
};
};
}
|