From 0d6fc2da24d72dbbf223ad6d57fa447d2c8b76d3 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 5 Jun 2023 12:17:11 +0200 Subject: [PATCH] Snapper: switch to new format --- odin/common_configuration.nix | 39 ++++++++++++++--------------------- 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/odin/common_configuration.nix b/odin/common_configuration.nix index f50a0b3..f6afbae 100644 --- a/odin/common_configuration.nix +++ b/odin/common_configuration.nix @@ -181,32 +181,23 @@ with lib; { services.snapper = { configs = let - bertofExtraConfig = '' - ALLOW_USERS="bertof" - TIMELINE_CREATE=yes - TIMELINE_CLEANUP=yes - ''; - common = { extraConfig = bertofExtraConfig; }; + common = { + ALLOW_USERS = [ "bertof" ]; + TIMELINE_CREATE = true; + TIMELINE_CLEANUP = true; + }; in { - bertof_home = recursiveUpdate common { subvolume = "/home/bertof"; }; - bertof_music = - recursiveUpdate common { subvolume = "/home/bertof/Musica"; }; - bertof_downloads = - recursiveUpdate common { subvolume = "/home/bertof/Scaricati"; }; - bertof_images = - recursiveUpdate common { subvolume = "/home/bertof/Immagini"; }; - bertof_videos = - recursiveUpdate common { subvolume = "/home/bertof/Video"; }; - bertof_documents = - 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"; }; + bertof_home = recursiveUpdate common { SUBVOLUME = "/home/bertof"; }; + bertof_music = recursiveUpdate common { SUBVOLUME = "/home/bertof/Musica"; }; + bertof_downloads = recursiveUpdate common { SUBVOLUME = "/home/bertof/Scaricati"; }; + bertof_images = recursiveUpdate common { SUBVOLUME = "/home/bertof/Immagini"; }; + bertof_videos = recursiveUpdate common { SUBVOLUME = "/home/bertof/Video"; }; + bertof_documents = 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"; }; }; };