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
|
# flake for blakes nixos config
|
||||||
# define new devices in outputs
|
# 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";
|
description = "blakes nix config";
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ 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
|
||||||
@@ -59,7 +58,7 @@ in
|
|||||||
--stats \
|
--stats \
|
||||||
--show-rc \
|
--show-rc \
|
||||||
--compression lz4 \
|
--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}
|
${lib.concatStringsSep " " cfg.paths}
|
||||||
|
|
||||||
# Prune old backups according to retention policy
|
# Prune old backups according to retention policy
|
||||||
|
|||||||
Reference in New Issue
Block a user