Snapper: switch to new format

This commit is contained in:
Filippo Berto 2023-06-05 12:17:11 +02:00
parent 8483e70dd4
commit 0d6fc2da24
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -181,32 +181,23 @@ with lib; {
services.snapper = { services.snapper = {
configs = configs =
let let
bertofExtraConfig = '' common = {
ALLOW_USERS="bertof" ALLOW_USERS = [ "bertof" ];
TIMELINE_CREATE=yes TIMELINE_CREATE = true;
TIMELINE_CLEANUP=yes TIMELINE_CLEANUP = true;
''; };
common = { extraConfig = bertofExtraConfig; };
in in
{ {
bertof_home = recursiveUpdate common { subvolume = "/home/bertof"; }; bertof_home = recursiveUpdate common { SUBVOLUME = "/home/bertof"; };
bertof_music = bertof_music = recursiveUpdate common { SUBVOLUME = "/home/bertof/Musica"; };
recursiveUpdate common { subvolume = "/home/bertof/Musica"; }; bertof_downloads = recursiveUpdate common { SUBVOLUME = "/home/bertof/Scaricati"; };
bertof_downloads = bertof_images = recursiveUpdate common { SUBVOLUME = "/home/bertof/Immagini"; };
recursiveUpdate common { subvolume = "/home/bertof/Scaricati"; }; bertof_videos = recursiveUpdate common { SUBVOLUME = "/home/bertof/Video"; };
bertof_images = bertof_documents = recursiveUpdate common { SUBVOLUME = "/home/bertof/Documenti"; };
recursiveUpdate common { subvolume = "/home/bertof/Immagini"; }; bertof_games_ssd = recursiveUpdate common { SUBVOLUME = "/home/bertof/Giochi/SSD"; };
bertof_videos = bertof_games_sata = recursiveUpdate common { SUBVOLUME = "/home/bertof/Giochi/SATA"; };
recursiveUpdate common { subvolume = "/home/bertof/Video"; }; # bertof_games_hdd = recursiveUpdate common { SUBVOLUME = "/home/bertof/Giochi/HDD"; };
bertof_documents = bertof_git = recursiveUpdate common { SUBVOLUME = "/home/bertof/Documenti/Git"; };
recursiveUpdate common { subvolume = "/home/bertof/Documenti"; };
bertof_games_ssd =
recursiveUpdate common { subvolume = "/home/bertof/Giochi/SSD"; };
bertof_games_sata =
recursiveUpdate common { subvolume = "/home/bertof/Giochi/SATA"; };
# bertof_games_hdd = recursiveUpdate common { subvolume = "/home/bertof/Giochi/HDD"; };
bertof_git =
recursiveUpdate common { subvolume = "/home/bertof/Documenti/Git"; };
}; };
}; };