21 current 2025-10-07 14:43:59 25.05.20251001.5b5be50 6.12.49 *

This commit is contained in:
2025-10-07 14:48:42 -05:00
parent 8f1e0dcb85
commit be76590d1f
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# flake for blakes nixos config # flake for blakes nixos config
# define new devices in outputs # 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"; description = "blakes nix config";
inputs = { inputs = {

View File

@@ -27,7 +27,7 @@ in
}; };
config = lib.mkIf (backup_paths != []) { config = lib.mkIf (backup_paths != []) {
systemd.services.borg-backup = { systemd.services.backups = {
description = "BorgBackup service for system data"; description = "BorgBackup service for system data";
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
@@ -39,6 +39,7 @@ in
# Initialize repo if it doesn't exist # Initialize repo if it doesn't exist
if ! borg info "$BORG_REPO" >/dev/null 2>&1; then if ! borg info "$BORG_REPO" >/dev/null 2>&1; then
mkdir -p "$BORG_REPO"
echo "init borg repo at $BORG_REPO" echo "init borg repo at $BORG_REPO"
borg init --encryption=repokey "$BORG_REPO" borg init --encryption=repokey "$BORG_REPO"
fi fi