Correct nixfmt

This commit is contained in:
Fabian Hauser 2020-06-27 23:22:08 +02:00
parent 4c5c5a42ca
commit b2eb267100
6 changed files with 16 additions and 24 deletions

View file

@ -1,34 +1,30 @@
{ config, pkgs, ... }:
let mountService = "var-backup.mount";
repo = "/var/backup/montalin"; # TODO: Does this make sense?
{
services.borgbackup.jobs = rec {
let
mountService = "var-backup.mount";
repo = "/var/backup/montalin"; # TODO: Does this make sense?
in {
services.borgbackup.jobs = {
data = {
exclude = [
"/var/backup" #TODO: Does this make sense?
"/var/backup" # TODO: Does this make sense?
"/var/tmp"
"/var/cache"
];
paths = [
"/etc"
"/home"
"/root"
"/var"
];
paths = [ "/etc" "/home" "/root" "/var" ];
preHook = "systemctl mount ${mountService}";
postHook = "systemctl stop ${mountService}";
prune.keep = {
within = "14d";
weekly = 4;
monthly 6;
monthly = 6;
yearly = -1;
};
removeableDevices = true;
repo = repo;
startAt = ; #TODO: systemdtime
environment.BORG_BASE_DIR="${repo}/borg-base-dir";
startAt = "07:00:";
environment.BORG_BASE_DIR = "${repo}/borg-base-dir";
};
};
}