Update comments in snapper.nix

This commit is contained in:
iFargle 2023-12-26 20:54:01 +09:00
parent 482ec34f16
commit c6666c34a0

View file

@ -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";