nixos-config/hosts/thinkpad/modules/snapper/default.nix

35 lines
702 B
Nix
Raw Normal View History

2023-02-16 22:25:26 +01:00
{ config, ... }:
{
services.snapper = {
snapshotRootOnBoot = true;
configs = {
root = {
subvolume = "/";
extraConfig = ''
ALLOW_USERS="rouven"
TIMELINE_CREATE=yes
TIMELINE_CLEANUP=yes
2023-02-21 12:24:34 +01:00
NUMBER_LIMIT=10
NUMBER_CLEANUP=yes
2023-02-16 22:25:26 +01:00
'';
};
home = {
subvolume = "/home";
extraConfig = ''
ALLOW_USERS="rouven"
TIMELINE_CREATE=yes
TIMELINE_CLEANUP=yes
'';
};
lib = {
subvolume = "/var/lib";
extraConfig = ''
ALLOW_USERS="rouven"
TIMELINE_CREATE=yes
TIMELINE_CLEANUP=yes
'';
};
};
};
}