forked from mirrors_public/oddlama_nix-config
feat: add new host envoy for mail, switch disko to partlabel
This commit is contained in:
parent
303fbd5595
commit
289fcdd197
45 changed files with 302 additions and 154 deletions
|
@ -7,30 +7,15 @@
|
|||
in {
|
||||
disko.devices = {
|
||||
disk = {
|
||||
${disks.main} = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-id/${disks.main}";
|
||||
content = with lib.disko.gpt; {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
grub =
|
||||
partGrub "0%" "1MiB"
|
||||
// {
|
||||
# FIXME: Needed because partlabels are 💩: https://github.com/nix-community/disko/issues/551
|
||||
device = "/dev/disk/by-id/${disks.main}-part1";
|
||||
};
|
||||
bios =
|
||||
partEfi "1MiB" "512MiB"
|
||||
// {
|
||||
# FIXME: Needed because partlabels are 💩: https://github.com/nix-community/disko/issues/551
|
||||
device = "/dev/disk/by-id/${disks.main}-part2";
|
||||
};
|
||||
"rpool_${disks.main}" =
|
||||
partLuksZfs disks.main "rpool" "512MiB" "100%"
|
||||
// {
|
||||
# FIXME: Needed because partlabels are 💩: https://github.com/nix-community/disko/issues/551
|
||||
device = "/dev/disk/by-id/${disks.main}-part3";
|
||||
};
|
||||
grub = partGrub;
|
||||
bios = partBoot "512M";
|
||||
rpool = partLuksZfs disks.main "rpool" "100%";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue