From 2277e25eca806a0a6f40403d46f47e1db1db0874 Mon Sep 17 00:00:00 2001 From: dadada Date: Sat, 17 Dec 2022 03:36:59 +0100 Subject: [PATCH] fix formatting --- nixos/modules/backup.nix | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/nixos/modules/backup.nix b/nixos/modules/backup.nix index 0adeafe..49df52b 100644 --- a/nixos/modules/backup.nix +++ b/nixos/modules/backup.nix @@ -68,23 +68,23 @@ in }; services.borgbackup.jobs.gs = mkIf cfg.gs.enable { - paths = "/"; - exclude = backupExcludes; - repo = "/backup/${config.networking.hostName}"; - doInit = false; - encryption = { - mode = "repokey"; - passCommand = "cat ${cfg.gs.passphrasePath}"; - }; - compression = "auto,lz4"; - prune.keep = { - within = "1d"; # Keep all archives from the last day - daily = 7; - weekly = 2; - monthly = -1; # Keep at least one archive for each month - yearly = -1; # Keep at least one archive for each year - }; - startAt = "monthly"; + paths = "/"; + exclude = backupExcludes; + repo = "/backup/${config.networking.hostName}"; + doInit = false; + encryption = { + mode = "repokey"; + passCommand = "cat ${cfg.gs.passphrasePath}"; + }; + compression = "auto,lz4"; + prune.keep = { + within = "1d"; # Keep all archives from the last day + daily = 7; + weekly = 2; + monthly = -1; # Keep at least one archive for each month + yearly = -1; # Keep at least one archive for each year + }; + startAt = "monthly"; }; services.borgbackup.jobs.bs = mkIf cfg.bs.enable {