Snapper on Loki

This commit is contained in:
Filippo Berto 2022-06-14 10:39:54 +02:00
parent cb88eef2a2
commit 47e99ede4f

View file

@ -202,20 +202,39 @@
jellyfin.extraGroups = [ "video" ]; jellyfin.extraGroups = [ "video" ];
}; };
# services.snapper = { services.snapper = {
# configs = configs =
# let let
# bertofExtraConfig = '' commonExtraConfig = ''
# ALLOW_USERS="bertof" ALLOW_USERS="bertof"
# TIMELINE_CREATE=yes TIMELINE_CREATE=yes
# TIMELINE_CLEANUP=yes TIMELINE_CLEANUP=yes
# ''; '';
# common = { extraConfig = bertofExtraConfig; }; in
# in {
# { bertof_raid0 = {
# bertof_home = common // { subvolume = "/home/bertof"; }; subvolume = "/mnt/raid0/bertof";
# }; extraConfig = ''
# }; ALLOW_USERS="bertof"
${commonExtraConfig}
'';
};
tiziano_raid0 = {
subvolume = "/mnt/raid0/tiziano";
extraConfig = ''
ALLOW_USERS="tiziano"
${commonExtraConfig}
'';
};
condiviso_raid0 = {
subvolume = "/mnt/raid0/condiviso";
extraConfig = ''
ALLOW_USERS="bertof tiziano"
${commonExtraConfig}
'';
};
};
};
systemd.packages = with pkgs; [ syncthing ]; systemd.packages = with pkgs; [ syncthing ];