use my branch for btrbk

This commit is contained in:
cy 2024-12-30 14:49:57 -05:00
parent 58de58ffa9
commit 1ffcc8d020
3 changed files with 16 additions and 14 deletions

View file

@ -1,7 +1,6 @@
{
config,
pkgs,
lib,
inputs,
...
}:
@ -10,9 +9,13 @@
./hardware-configuration.nix
../common.nix
{
disabledModules = [ "services/backup/borgbackup.nix" ];
disabledModules = [
"services/backup/borgbackup.nix"
"services/backup/btrbk.nix"
];
}
(inputs.nixpkgs-borg + "/nixos/modules/services/backup/borgbackup.nix")
(inputs.nixpkgs-btrbk + "/nixos/modules/services/backup/btrbk.nix")
];
sops.age.keyFile = "/root/.config/sops/age/keys.txt";
@ -251,7 +254,9 @@
services.btrbk.instances.local = {
onCalendar = "hourly";
snapshotOnly = true;
settings = {
# only create snapshots automatically. backups are triggered manually with `btrbk resume`
snapshot_preserve = "7d";
snapshot_preserve_min = "2d";
target_preserve = "*d";
@ -265,9 +270,6 @@
};
};
};
# only create snapshots automatically. backups are triggered manually
systemd.services."btrbk-local".serviceConfig.ExecStart =
lib.mkForce "${pkgs.btrbk}/bin/btrbk -c /etc/btrbk/local.conf snapshot";
programs.steam = {
enable = true;