From c59f1165be3eabb296afaa0b57e24e416349df45 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 19 Oct 2024 08:43:49 +0200 Subject: [PATCH] backup: minor fixups --- hosts/desktop/hardware-configuration.nix | 8 +++++++- modules/hardware/backup.nix | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix index 2ee21db..c9f4387 100644 --- a/hosts/desktop/hardware-configuration.nix +++ b/hosts/desktop/hardware-configuration.nix @@ -69,7 +69,7 @@ snapshot_preserve_min = "all"; target_preserve_min = "no"; - target_preserve = "2m 4w"; + target_preserve = "2m 4w 3d"; ssh_identity = "/etc/btrbk/ssh/id_ed25519_btrbk_nas"; ssh_user = "btrbk"; @@ -87,6 +87,12 @@ }; }; + systemd.services = { + btrbk-bak = { + after = [ "network.target" ]; + }; + }; + fileSystems."/" = { device = "/dev/disk/by-id/nvme-ADATA_SX8200PNP_2J3320119186-part2"; fsType = "btrfs"; diff --git a/modules/hardware/backup.nix b/modules/hardware/backup.nix index a95c781..434b7ee 100644 --- a/modules/hardware/backup.nix +++ b/modules/hardware/backup.nix @@ -11,7 +11,7 @@ } { key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIma7jNVQZM+lFMOKUex0+cyDpeUA3Wo4SEJ7P9YnHPG"; - roles = [ "target" "info" "receive" ]; + roles = [ "target" "info" "receive" "delete" ]; } ]; };