diff --git a/flake.nix b/flake.nix index 871e681..6c83349 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 20 current 2025-10-07 00:49:35 25.05.20251001.5b5be50 6.12.49 * +# generation: 21 current 2025-10-07 14:43:59 25.05.20251001.5b5be50 6.12.49 * { description = "blakes nix config"; inputs = { diff --git a/modules/system/backups.nix b/modules/system/backups.nix index d2c83cf..09fcfd3 100644 --- a/modules/system/backups.nix +++ b/modules/system/backups.nix @@ -27,7 +27,7 @@ in }; config = lib.mkIf (backup_paths != []) { - systemd.services.borg-backup = { + systemd.services.backups = { description = "BorgBackup service for system data"; serviceConfig = { Type = "oneshot"; @@ -39,6 +39,7 @@ in # Initialize repo if it doesn't exist if ! borg info "$BORG_REPO" >/dev/null 2>&1; then + mkdir -p "$BORG_REPO" echo "init borg repo at $BORG_REPO" borg init --encryption=repokey "$BORG_REPO" fi