borg-backup: fix exclude config

This commit is contained in:
Antoine Martin 2021-01-31 13:11:31 +01:00
parent 41769615f0
commit 48bb7a8841

View file

@ -45,10 +45,8 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.borgbackup.jobs."borgbase" = { services.borgbackup.jobs."borgbase" = {
paths = cfg.paths; paths = cfg.paths;
exclude = [ exclude = cfg.exclude;
# nothing for now repo = cfg.repo;
];
repo = "${cfg.repo}";
encryption = { encryption = {
mode = "repokey-blake2"; mode = "repokey-blake2";
passCommand = "cat /root/borgbackup/passphrase"; passCommand = "cat /root/borgbackup/passphrase";