forked from mirrors_public/oddlama_nix-config
fix: add device overrides for new disko partlabel stuff
This commit is contained in:
parent
5aad6c3a84
commit
aab790065a
8 changed files with 110 additions and 20 deletions
|
@ -13,9 +13,24 @@ in {
|
|||
content = with lib.disko.gpt; {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
efi = partEfi "0%" "1GiB";
|
||||
swap = partSwap "1GiB" "17GiB";
|
||||
"rpool_${disks.m2-ssd}" = partLuksZfs disks.m2-ssd "rpool" "17GiB" "100%";
|
||||
efi =
|
||||
partEfi "0%" "1GiB"
|
||||
// {
|
||||
# FIXME: Needed because partlabels are 💩: https://github.com/nix-community/disko/issues/551
|
||||
device = "/dev/disk/by-id/${disks.m2-ssd}-part1";
|
||||
};
|
||||
swap =
|
||||
partSwap "1GiB" "17GiB"
|
||||
// {
|
||||
# FIXME: Needed because partlabels are 💩: https://github.com/nix-community/disko/issues/551
|
||||
device = "/dev/disk/by-id/${disks.m2-ssd}-part2";
|
||||
};
|
||||
"rpool_${disks.m2-ssd}" =
|
||||
partLuksZfs disks.m2-ssd "rpool" "17GiB" "100%"
|
||||
// {
|
||||
# FIXME: Needed because partlabels are 💩: https://github.com/nix-community/disko/issues/551
|
||||
device = "/dev/disk/by-id/${disks.m2-ssd}-part3";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue