From c6666c34a02292c5644e2e1e1ea09ac565f8ae99 Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 26 Dec 2023 20:54:01 +0900 Subject: [PATCH] Update comments in snapper.nix --- nixos/common/services/snapper.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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";