fix: fixed generation of disko configuration

This commit is contained in:
Leyla Becker 2025-11-08 17:04:53 -06:00
parent 730eeef242
commit 3ca0e9bf0a
5 changed files with 229 additions and 42 deletions

View file

@ -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;