mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
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,39 +7,24 @@
|
|||
in {
|
||||
disko.devices = {
|
||||
disk = {
|
||||
${disks.m2-ssd} = {
|
||||
m2-ssd = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-id/${disks.m2-ssd}";
|
||||
content = with lib.disko.gpt; {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
"rpool_${disks.m2-ssd}" =
|
||||
partLuksZfs disks.m2-ssd "rpool" "0%" "100%"
|
||||
// {
|
||||
# FIXME: Needed because partlabels are 💩: https://github.com/nix-community/disko/issues/551
|
||||
device = "/dev/disk/by-id/${disks.m2-ssd}-part1";
|
||||
};
|
||||
rpool = partLuksZfs disks.m2-ssd "rpool" "100%";
|
||||
};
|
||||
};
|
||||
};
|
||||
${disks.boot-ssd} = {
|
||||
boot-ssd = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-id/${disks.boot-ssd}";
|
||||
content = with lib.disko.gpt; {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
efi =
|
||||
partEfi "0%" "8GiB"
|
||||
// {
|
||||
# FIXME: Needed because partlabels are 💩: https://github.com/nix-community/disko/issues/551
|
||||
device = "/dev/disk/by-id/${disks.boot-ssd}-part1";
|
||||
};
|
||||
swap =
|
||||
partSwap "8GiB" "100%"
|
||||
// {
|
||||
# FIXME: Needed because partlabels are 💩: https://github.com/nix-community/disko/issues/551
|
||||
device = "/dev/disk/by-id/${disks.boot-ssd}-part2";
|
||||
};
|
||||
efi = partEfi "8G";
|
||||
swap = partSwap "100%";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue