hosts/ni/services/backup: update Disko and snapper config

This commit is contained in:
Gabriel Arazas 2025-02-16 13:48:21 +08:00
parent e1be6b4d04
commit 4b63b7d679
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 18 additions and 0 deletions

View File

@ -60,6 +60,16 @@
mountpoint = "/gnu"; mountpoint = "/gnu";
}; };
}) })
(lib.mkIf (config.services.snapper.configs != {}) {
"/home/.snapshots" = {
mountOptions = [ "compress=zstd" ];
};
"/.snapshots" = {
mountOptions = [ "compress=zstd" ];
};
})
]; ];
}; };
}; };

View File

@ -124,6 +124,14 @@ in {
TIMELINE_LIMIT_WEEKLY = 12; TIMELINE_LIMIT_WEEKLY = 12;
}; };
}; };
filters = ''
/tmp
/var/tmp
/var/log
/var/lib/libvirt/images
/srv
'';
}; };
}; };
} }