fix: fixed generation of disko configuration
This commit is contained in:
parent
730eeef242
commit
3ca0e9bf0a
5 changed files with 229 additions and 42 deletions
|
|
@ -32,13 +32,6 @@
|
|||
autoSnapshot = false;
|
||||
};
|
||||
};
|
||||
"persist/system/root" = {
|
||||
type = "zfs_fs";
|
||||
mount = {
|
||||
enable = true;
|
||||
mountPoint = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
(lib.mkIf (!config.storage.impermanence.enable) {
|
||||
|
|
@ -46,6 +39,10 @@
|
|||
storage.zfs.datasets = {
|
||||
"persist/system/root" = {
|
||||
type = "zfs_fs";
|
||||
mount = {
|
||||
enable = false;
|
||||
mountPoint = "/";
|
||||
};
|
||||
snapshot = {
|
||||
autoSnapshot = true;
|
||||
};
|
||||
|
|
@ -55,6 +52,10 @@
|
|||
(lib.mkIf config.storage.impermanence.enable {
|
||||
storage.impermanence.datasets = {
|
||||
"persist/system/root" = {
|
||||
mount = {
|
||||
enable = false;
|
||||
mountPoint = "/";
|
||||
};
|
||||
directories = {
|
||||
"/var/lib/nixos".enable = true;
|
||||
"/var/lib/systemd/coredump".enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue