mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 08:20:43 +00:00
Support persisting data separately from config
This commit is contained in:
parent
4a10a3536a
commit
507f364e5b
3 changed files with 63 additions and 11 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue