Snapper: switch to new format
This commit is contained in:
parent
2059cca253
commit
3df5b1149a
2 changed files with 17 additions and 28 deletions
|
|
@ -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}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue