mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-21 19:41:26 +00:00
Fix errors caused by temp files creation
This commit is contained in:
parent
e76f0e5d82
commit
7c2264ff89
19
files.nix
19
files.nix
|
@ -16,16 +16,15 @@ in
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
"d /var/restic 0660 restic - - -"
|
(if cfg.bitwarden.enable then "d /var/lib/bitwarden 0777 bitwarden_rs bitwarden_rs -" else "")
|
||||||
"d /var/bitwarden 0777 bitwarden_rs bitwarden_rs -"
|
(if cfg.bitwarden.enable then "d /var/lib/bitwarden/backup 0777 bitwarden_rs bitwarden_rs -" else "")
|
||||||
"d /var/bitwarden/backup 0777 bitwarden_rs bitwarden_rs -"
|
(if cfg.pleroma.enable then "d /var/lib/pleroma 0600 pleroma pleroma - -" else "")
|
||||||
"d /var/lib/pleroma 0600 pleroma pleroma - -"
|
"d /var/lib/restic 0600 restic - - -"
|
||||||
"d /var/lib/restic 0600 restic restic - -"
|
"f /var/lib/restic/pass 0400 restic - - ${resticPass}"
|
||||||
"f /var/lib/restic/pass 0400 restic restic - ${resticPassword}"
|
(if cfg.pleroma.enable then "f /var/lib/pleroma/secrets.exs 0755 pleroma pleroma - -" else "")
|
||||||
"f /var/lib/pleroma/secrets.exs 0755 pleroma pleroma - -"
|
|
||||||
"f /var/domain 0444 selfprivacy-api selfprivacy-api - ${domain}"
|
"f /var/domain 0444 selfprivacy-api selfprivacy-api - ${domain}"
|
||||||
"f /var/nextcloud-db-pass 0440 nextcloud nextcloud - ${nextcloudDBPass}"
|
(if cfg.nextcloud.enable then "f /var/lib/nextcloud/db-pass 0440 nextcloud nextcloud - ${nextcloudDBPass}" else "")
|
||||||
"f /var/nextcloud-admin-pass 0440 nextcloud nextcloud - ${nextcloudAdminPass}"
|
(if cfg.nextcloud.enable then "f /var/lib/nextcloud/admin-pass 0440 nextcloud nextcloud - ${nextcloudAdminPass}" else "")
|
||||||
"f /var/cloudflareCredentials.ini 0440 nginx acmerecievers - ${cloudflareCredentials}"
|
"f /var/lib/cloudflare/Credentials.ini 0440 nginx acmerecievers - ${cloudflareCredentials}"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ in
|
||||||
extraDomainNames = [ "${cfg.domain}" ];
|
extraDomainNames = [ "${cfg.domain}" ];
|
||||||
group = "acmerecievers";
|
group = "acmerecievers";
|
||||||
dnsProvider = "cloudflare";
|
dnsProvider = "cloudflare";
|
||||||
credentialsFile = "/var/cloudflareCredentials.ini";
|
credentialsFile = "/var/lib/cloudflare/Credentials.ini";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,9 +25,9 @@ in
|
||||||
dbuser = "nextcloud";
|
dbuser = "nextcloud";
|
||||||
dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself
|
dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself
|
||||||
dbname = "nextcloud";
|
dbname = "nextcloud";
|
||||||
dbpassFile = "/var/nextcloud-db-pass";
|
dbpassFile = "/var/lib/nextcloud/db-pass";
|
||||||
|
|
||||||
adminpassFile = "/var/nextcloud-admin-pass";
|
adminpassFile = "/var/lib/nextcloud/admin-pass";
|
||||||
adminuser = "admin";
|
adminuser = "admin";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,7 +6,7 @@ in
|
||||||
services.bitwarden_rs = {
|
services.bitwarden_rs = {
|
||||||
enable = cfg.bitwarden.enable;
|
enable = cfg.bitwarden.enable;
|
||||||
dbBackend = "sqlite";
|
dbBackend = "sqlite";
|
||||||
backupDir = "/var/bitwarden/backup";
|
backupDir = "/var/lib/bitwarden/backup";
|
||||||
config = {
|
config = {
|
||||||
domain = "https://password.${cfg.domain}/";
|
domain = "https://password.${cfg.domain}/";
|
||||||
signupsAllowed = true;
|
signupsAllowed = true;
|
||||||
|
|
Loading…
Reference in a new issue