Support persisting data separately from config

This commit is contained in:
ItsDrike 2024-06-26 22:51:51 +02:00
parent 4a10a3536a
commit 507f364e5b
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
3 changed files with 63 additions and 11 deletions

View file

@ -25,5 +25,18 @@ in {
# Docker, etc. Requires NixOS configuration programs.fuse.userAllowOther = true;
allowOther = true;
};
home.persistence."${cfg.persistentDataMountPoint}" = {
directories = [
] ++ cfg.extraDataDirectories;
files = [
] ++ cfg.extraDataFiles;
# See comment for this above
allowOther = true;
};
};
}