mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-16 05:43:10 +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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|