No known key found for this signature in database
GPG Key ID: B4C3BF012D9B26BE
2 changed files with
30 additions and
53 deletions
-
machines/manager/disk.nix
-
machines/node/disk.nix
|
|
@ -4,46 +4,35 @@ |
|
|
|
device = "/dev/disk/by-path/pci-0000:01:00.0-scsi-0:1:1:0"; |
|
|
|
type = "disk"; |
|
|
|
content = { |
|
|
|
type = "table"; |
|
|
|
format = "gpt"; |
|
|
|
partitions = [ |
|
|
|
{ |
|
|
|
name = "root"; |
|
|
|
type = "gpt"; |
|
|
|
partitions = { |
|
|
|
ESP = { |
|
|
|
start = "1MiB"; |
|
|
|
size = "100MiB"; |
|
|
|
type = "EF00"; |
|
|
|
content = { |
|
|
|
type = "filesystem"; |
|
|
|
format = "vfat"; |
|
|
|
mountpoint = "/boot"; |
|
|
|
}; |
|
|
|
}; |
|
|
|
root = { |
|
|
|
start = "100MiB"; |
|
|
|
end = "-4GB"; |
|
|
|
part-type = "primary"; |
|
|
|
fs-type = "btrfs"; |
|
|
|
bootable = true; |
|
|
|
content = { |
|
|
|
type = "filesystem"; |
|
|
|
format = "btrfs"; |
|
|
|
mountpoint = "/"; |
|
|
|
}; |
|
|
|
} |
|
|
|
{ |
|
|
|
name = "swap"; |
|
|
|
start = "-4G"; |
|
|
|
}; |
|
|
|
swap = { |
|
|
|
end = "100%"; |
|
|
|
part-type = "primary"; |
|
|
|
fs-type = "linux-swap"; |
|
|
|
content = { |
|
|
|
type = "swap"; |
|
|
|
randomEncryption = true; |
|
|
|
}; |
|
|
|
} |
|
|
|
{ |
|
|
|
name = "ESP"; |
|
|
|
start = "1MiB"; |
|
|
|
end = "100MiB"; |
|
|
|
fs-type = "fat32"; |
|
|
|
bootable = true; |
|
|
|
content = { |
|
|
|
type = "filesystem"; |
|
|
|
format = "vfat"; |
|
|
|
mountpoint = "/boot"; |
|
|
|
}; |
|
|
|
} |
|
|
|
]; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
@ -4,43 +4,31 @@ |
|
|
|
device = "/dev/disk/by-path/pci-0000:00:11.0-ata-1"; |
|
|
|
type = "disk"; |
|
|
|
content = { |
|
|
|
type = "table"; |
|
|
|
format = "gpt"; |
|
|
|
partitions = [ |
|
|
|
{ |
|
|
|
name = "boot"; |
|
|
|
start = "0"; |
|
|
|
end = "1M"; |
|
|
|
part-type = "primary"; |
|
|
|
flags = [ "bios_grub" ]; |
|
|
|
} |
|
|
|
{ |
|
|
|
name = "root"; |
|
|
|
start = "1MB"; |
|
|
|
type = "gpt"; |
|
|
|
partitions = { |
|
|
|
boot = { |
|
|
|
size = "1M"; |
|
|
|
type = "EF02"; |
|
|
|
priority = 1; |
|
|
|
}; |
|
|
|
root = { |
|
|
|
end = "-4GB"; |
|
|
|
part-type = "primary"; |
|
|
|
fs-type = "btrfs"; |
|
|
|
bootable = true; |
|
|
|
content = { |
|
|
|
type = "filesystem"; |
|
|
|
format = "btrfs"; |
|
|
|
mountpoint = "/"; |
|
|
|
extraArgs = [ "-f" ]; |
|
|
|
}; |
|
|
|
} |
|
|
|
{ |
|
|
|
name = "swap"; |
|
|
|
start = "-4G"; |
|
|
|
end = "100%"; |
|
|
|
part-type = "primary"; |
|
|
|
fs-type = "linux-swap"; |
|
|
|
}; |
|
|
|
swap = { |
|
|
|
size = "100%"; |
|
|
|
content = { |
|
|
|
type = "swap"; |
|
|
|
randomEncryption = true; |
|
|
|
extraArgs = [ "-f" ]; |
|
|
|
}; |
|
|
|
} |
|
|
|
]; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|