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" ]; } ]; };