caliban: migrate disko config to gpt type
Martin Weinelt committed
Apr 24, 2025 at 00:02 UTC
946fb01bb414923f2756d77f3c21a5634329f450
1 file changed
+14
-19
non-critical-infra/hosts/caliban/disko.nix
+14
-19
@@ -1,34 +1,31 @@
1
let
2
- partitions = [
3
- {
4
- name = "grub";
2
+ partitions = {
3
+ grub = {
4
+ priority = 1;
5
start = "0";
6
end = "1M";
7
- part-type = "primary";
8
- flags = [ "bios_grub" ];
9
- }
10
- {
7
+ type = "EF02";
8
+ };
9
+ boot = {
10
+ priority = 2;
11
name = "boot";
12
start = "1M";
13
end = "1G";
14
- part-type = "primary";
14
content = {
15
type = "filesystem";
16
format = "vfat";
17
};
19
- }
20
- {
21
- name = "root";
18
+ };
19
+ root = {
20
+ priority = 3;
21
start = "1G";
22
end = "100%";
24
- part-type = "primary";
25
- bootable = true;
23
content = {
24
type = "zfs";
25
pool = "zroot";
26
};
30
- }
31
- ];
27
+ };
28
+ };
29
in
30
{
31
disk = {
@@ -36,8 +33,7 @@ in
33
type = "disk";
34
device = "/dev/nvme0n1";
35
content = {
39
- type = "table";
40
- format = "gpt";
36
+ type = "gpt";
37
inherit partitions;
38
};
39
};
@@ -45,8 +41,7 @@ in
41
type = "disk";
42
device = "/dev/nvme1n1";
43
content = {
48
- type = "table";
49
- format = "gpt";
44
+ type = "gpt";
45
inherit partitions;
46
};
47
};