forked from mirrors_public/oddlama_nix-config
chore: miscellaneous necessary refactors post-update
This commit is contained in:
parent
6ce119d871
commit
5aad6c3a84
11 changed files with 48 additions and 73 deletions
|
@ -11,26 +11,14 @@ in {
|
|||
type = "disk";
|
||||
device = "/dev/disk/by-id/${disks.m2-ssd}";
|
||||
content = with lib.disko.gpt; {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
(partEfi "efi" "0%" "1GiB")
|
||||
(partSwap "swap" "1GiB" "17GiB")
|
||||
(partLuksZfs disks.m2-ssd "rpool" "17GiB" "100%")
|
||||
];
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
efi = partEfi "0%" "1GiB";
|
||||
swap = partSwap "1GiB" "17GiB";
|
||||
"rpool_${disks.m2-ssd}" = partLuksZfs disks.m2-ssd "rpool" "17GiB" "100%";
|
||||
};
|
||||
};
|
||||
};
|
||||
#data-hdd = {
|
||||
# type = "disk";
|
||||
# device = "/dev/disk/by-id/${config.repo.secrets.local.disk.data-hdd}";
|
||||
# content = with lib.disko.gpt; {
|
||||
# type = "table";
|
||||
# format = "gpt";
|
||||
# partitions = [
|
||||
# (partLuksZfs "data" "0%" "100%")
|
||||
# ];
|
||||
# };
|
||||
#};
|
||||
};
|
||||
zpool = with lib.disko.zfs; {
|
||||
rpool = mkZpool {datasets = impermanenceZfsDatasets;};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue