Snapper: switch to new format

This commit is contained in:
Filippo Berto 2023-06-05 15:01:23 +02:00
parent 2059cca253
commit 3df5b1149a
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
2 changed files with 17 additions and 28 deletions

View file

@ -240,32 +240,23 @@ with lib; {
services.snapper = { services.snapper = {
configs = configs =
let let
commonExtraConfig = '' common = {
TIMELINE_CREATE=yes TIMELINE_CREATE = true;
TIMELINE_CLEANUP=yes TIMELINE_CLEANUP = true;
''; };
in in
{ {
bertof = { bertof = recursiveUpdate common {
subvolume = "/home/bertof/"; SUBVOLUME = "/home/bertof/";
extraConfig = '' ALLOW_USERS = [ "bertof" ];
ALLOW_USERS="bertof"
${commonExtraConfig}
'';
}; };
tiziano = { tiziano = recursiveUpdate common {
subvolume = "/home/tiziano/"; SUBVOLUME = "/home/tiziano/";
extraConfig = '' ALLOW_USERS = [ "tiziano" ];
ALLOW_USERS="tiziano"
${commonExtraConfig}
'';
}; };
condiviso = { condiviso = recursiveUpdate common {
subvolume = "/mnt/condiviso"; SUBVOLUME = "/mnt/condiviso";
extraConfig = '' ALLOW_USERS = [ "bertof" "tiziano" ];
ALLOW_USERS="bertof tiziano"
${commonExtraConfig}
'';
}; };
}; };
}; };

View file

@ -131,15 +131,13 @@ with lib; {
configs = configs =
let let
common = { common = {
extraConfig = '' ALLOW_USERS = [ "bertof" ];
ALLOW_USERS="bertof" TIMELINE_CLEANUP = true;
TIMELINE_CREATE=yes TIMELINE_CREATE = true;
TIMELINE_CLEANUP=yes
'';
}; };
in in
{ {
bertof_home = recursiveUpdate common { subvolume = "/home/bertof"; }; bertof_home = recursiveUpdate common { SUBVOLUME = "/home/bertof"; };
}; };
}; };
thermald.enable = true; thermald.enable = true;