2023-12-12 06:26:36 +01:00
|
|
|
{ lib, pkgs, desktop, ... }: {
|
2023-12-12 06:49:35 +01:00
|
|
|
environment.systemPackages = [ pkgs.snapper ] ++ lib.optional (builtins.isString desktop) pkgs.snapper-gui;
|
2023-12-12 06:23:58 +01:00
|
|
|
|
|
|
|
services.snapper = {
|
|
|
|
snapshotRootOnBoot = true;
|
|
|
|
cleanupInterval = "1d";
|
|
|
|
snapshotInterval = "1h";
|
|
|
|
};
|
|
|
|
}
|