mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 21:33:11 +01:00
24 lines
438 B
Nix
24 lines
438 B
Nix
|
{ config, ... }:
|
||
|
{
|
||
|
services.snapper = {
|
||
|
configs = {
|
||
|
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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|