From be76590d1f972ce2b16c92321e140550964d2671 Mon Sep 17 00:00:00 2001 From: blake Date: Tue, 7 Oct 2025 14:48:42 -0500 Subject: [PATCH] 21 current 2025-10-07 14:43:59 25.05.20251001.5b5be50 6.12.49 * --- flake.nix | 2 +- modules/system/backups.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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