1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: convert nom to disko

This commit is contained in:
oddlama 2023-06-25 22:58:11 +02:00
parent 02a8544825
commit 9a810bd125
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 69 additions and 42 deletions

View file

@ -21,22 +21,7 @@
};
};
zpool = with extraLib.disko.zfs; {
rpool =
defaultZpoolOptions
// {
datasets = {
"local" = unmountable;
"local/root" =
filesystem "/"
// {
postCreateHook = "zfs snapshot rpool/local/root@blank";
};
"local/nix" = filesystem "/nix";
"local/state" = filesystem "/state";
"safe" = unmountable;
"safe/persist" = filesystem "/persist";
};
};
rpool = defaultZpoolOptions // {datasets = defaultZfsDatasets;};
};
};