Add persistance and incus

This commit is contained in:
2026-05-31 11:11:59 +01:00
parent 480a809216
commit 4521968b3f
4 changed files with 112 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
{ config, lib, pkgs, ... }:
{
persisting = {
enable = true;
# Default directories to persist
directories = [
{
path = "/persist";
target = "/persist";
options = [ "defaults" "bind" ];
}
{
path = "/var/log";
target = "/var/log";
options = [ "defaults" "bind" ];
}
{
path = "/var/lib";
target = "/var/lib";
options = [ "defaults" "bind" ];
}
];
};
# Ensure persist directory exists
systemd.tmpfiles.rules = [
"d /persist 0755 root root - -"
];
}