26 current 2025-10-07 15:27:08 25.05.20251001.5b5be50 6.12.49 *
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# flake for blakes nixos config
|
||||
# define new devices in outputs
|
||||
# generation: 25 current 2025-10-07 15:19:25 25.05.20251001.5b5be50 6.12.49 *
|
||||
# generation: 26 current 2025-10-07 15:27:08 25.05.20251001.5b5be50 6.12.49 *
|
||||
{
|
||||
description = "blakes nix config";
|
||||
inputs = {
|
||||
|
||||
@@ -45,7 +45,6 @@ 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
|
||||
@@ -59,7 +58,7 @@ in
|
||||
--stats \
|
||||
--show-rc \
|
||||
--compression lz4 \
|
||||
"$BORG_REPO::$(host)-$(date +'%Y-%m-%dT%H:%M:%S')" \
|
||||
"$BORG_REPO::$(HOST)-$(date +'%Y-%m-%dT%H:%M:%S')" \
|
||||
${lib.concatStringsSep " " cfg.paths}
|
||||
|
||||
# Prune old backups according to retention policy
|
||||
|
||||
Reference in New Issue
Block a user