mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-12-23 21:44:21 +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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|