nix/nixos/common/services/snapper.nix
2023-12-12 14:26:36 +09:00

9 lines
No EOL
265 B
Nix

{ lib, pkgs, desktop, ... }: {
environment.systemPackages = [ ] ++ lib.optional (builtins.isString desktop) pkgs.snapper-gui;
services.snapper = {
snapshotRootOnBoot = true;
cleanupInterval = "1d";
snapshotInterval = "1h";
};
}