Move rclone conf to restic.nix
parent
9f54887254
commit
84e0ae01f9
|
@ -8,7 +8,12 @@ in
|
||||||
passwordFile = "/var/lib/restic/pass";
|
passwordFile = "/var/lib/restic/pass";
|
||||||
repository = "rclone:backblaze:${cfg.backblaze.bucket}:/sfbackup";
|
repository = "rclone:backblaze:${cfg.backblaze.bucket}:/sfbackup";
|
||||||
extraOptions = [ "rclone.args='serve restic --stdio'" ];
|
extraOptions = [ "rclone.args='serve restic --stdio'" ];
|
||||||
rcloneConfigFile = "/root/.config/rclone/rclone.conf";
|
rcloneConfig = {
|
||||||
|
type = "b2";
|
||||||
|
account = cfg.backblaze.accountId;
|
||||||
|
key = cfg.backblaze.accountKey;
|
||||||
|
hard_delete = false;
|
||||||
|
};
|
||||||
initialize = true;
|
initialize = true;
|
||||||
paths = [
|
paths = [
|
||||||
"/var"
|
"/var"
|
||||||
|
|
|
@ -27,7 +27,6 @@ in
|
||||||
(if cfg.pleroma.enable then "d /var/lib/pleroma 0700 pleroma pleroma - -" else "")
|
(if cfg.pleroma.enable then "d /var/lib/pleroma 0700 pleroma pleroma - -" else "")
|
||||||
"d /var/lib/restic 0700 restic - - -"
|
"d /var/lib/restic 0700 restic - - -"
|
||||||
"f+ /var/lib/restic/pass 0400 restic - - ${resticPass}"
|
"f+ /var/lib/restic/pass 0400 restic - - ${resticPass}"
|
||||||
"f+ /var/lib/restic/rclone.conf 0400 restic - - ${rcloneConfig}"
|
|
||||||
"f+ /root/.config/rclone/rclone.conf 0400 root root - ${rcloneConfig}"
|
"f+ /root/.config/rclone/rclone.conf 0400 root root - ${rcloneConfig}"
|
||||||
(if cfg.pleroma.enable then "f /var/lib/pleroma/secrets.exs 0755 pleroma pleroma - -" else "")
|
(if cfg.pleroma.enable then "f /var/lib/pleroma/secrets.exs 0755 pleroma pleroma - -" else "")
|
||||||
"f+ /var/domain 0444 selfprivacy-api selfprivacy-api - ${domain}"
|
"f+ /var/domain 0444 selfprivacy-api selfprivacy-api - ${domain}"
|
||||||
|
|
Loading…
Reference in New Issue