feat: added more development notes
This commit is contained in:
parent
adc6b90c93
commit
0de97fa4a2
2 changed files with 20 additions and 3 deletions
|
|
@ -23,7 +23,7 @@
|
|||
};
|
||||
"persist/system/var/log" = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/persist/system/var/log";
|
||||
mountpoint = "/var/log";
|
||||
options = {
|
||||
"com.sun:auto-snapshot" = "false";
|
||||
};
|
||||
|
|
@ -31,7 +31,6 @@
|
|||
};
|
||||
}
|
||||
(util.mkUnless config.storage.impermanence.enable {
|
||||
# TODO: configure datasets for normal zfs
|
||||
# TODO: create datasets for systemd.services.<name>.storage.impermanence.datasets
|
||||
storage.zfs.datasets = {
|
||||
"persist/system/root" = {
|
||||
|
|
@ -48,7 +47,6 @@
|
|||
};
|
||||
};
|
||||
storage.zfs.datasets = {
|
||||
# TODO: is there a way that we can link these two folders in configs via storage.impermanence.datasets
|
||||
"local/system/root" = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/";
|
||||
|
|
@ -58,6 +56,14 @@
|
|||
postCreateHook = ''
|
||||
zfs snapshot rpool/local/system/root@blank
|
||||
'';
|
||||
|
||||
directories = {
|
||||
"/var/lib/nixos".enable = true;
|
||||
"/var/lib/systemd/coredump".enable = true;
|
||||
};
|
||||
files = {
|
||||
"/etc/machine-id".enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue