diff --git a/nixos/hosts/nixos-desktop/disks.nix b/nixos/hosts/nixos-desktop/disks.nix index 28ffc6d4..4a29639f 100644 --- a/nixos/hosts/nixos-desktop/disks.nix +++ b/nixos/hosts/nixos-desktop/disks.nix @@ -1,6 +1,14 @@ { imports = [ ../../common/services/snapper.nix ]; - + + services.cron = { + systemCronJobs = [ + # Back up Local-Storage to NFS Storage + "0 0 * * 3 albert sudo btrfs-backup root" + "0 2 * * 3 albert sudo btrfs-backup nix" + ]; + }; + services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.interval = "weekly";