From 2b11802c4854c3c21c6bc71c6e2b862b2d25aca6 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Tue, 25 Jun 2024 00:24:59 +0200 Subject: [PATCH] Heimdall: snapper --- instances/heimdall/configuration.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/instances/heimdall/configuration.nix b/instances/heimdall/configuration.nix index d572e03..0616bcf 100644 --- a/instances/heimdall/configuration.nix +++ b/instances/heimdall/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: +{ pkgs, lib, config, ... }: let hosts = import ../../hosts.nix; in @@ -357,15 +357,15 @@ in retentionTime = "15d"; }; - # snapper.configs = - # let - # common = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; }; - # in - # { - # bertof = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/bertof/"; ALLOW_USERS = [ "bertof" ]; }; - # tiziano = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/tiziano/"; ALLOW_USERS = [ "tiziano" ]; }; - # condiviso = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/condiviso"; ALLOW_USERS = [ "bertof" "tiziano" ]; }; - # }; + snapper.configs = + let + common = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; }; + in + { + bertof = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/bertof/"; ALLOW_USERS = [ "bertof" ]; }; + tiziano = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/tiziano/"; ALLOW_USERS = [ "tiziano" ]; }; + condiviso = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/condiviso"; ALLOW_USERS = [ "bertof" "tiziano" ]; }; + }; };