diff --git a/nixos/common/services/snapper.nix b/nixos/common/services/snapper.nix index 71f8557c..959ef0a9 100644 --- a/nixos/common/services/snapper.nix +++ b/nixos/common/services/snapper.nix @@ -1,6 +1,12 @@ { lib, pkgs, desktop, ... }: { environment.systemPackages = [ pkgs.snapper ] ++ lib.optional (builtins.isString desktop) pkgs.snapper-gui; + # You need to make the snapshot directories manually: + # sudo rm -rf /.snapshots /home/.snapshots /nix/.snapshots + # sudo btrfs subvolume create /.snapshots + # sudo btrfs subvolume create /nix/.snapshots + # sudo btrfs subvolume create /home/.snapshots + services.snapper = { snapshotRootOnBoot = true; cleanupInterval = "1d";