File tree Expand file tree Collapse file tree 1 file changed +14
-25
lines changed Expand file tree Collapse file tree 1 file changed +14
-25
lines changed Original file line number Diff line number Diff line change 9
9
hardware . enableAllFirmware = false ;
10
10
networking . hostId = "8425e349" ; # from profiles/base.nix, needed for zfs
11
11
boot . zfs . devNodes = "/dev/disk/by-uuid" ; # needed because /dev/disk/by-id is empty in qemu-vms
12
- boot . loader . grub . devices = [ "/dev/vda" ] ;
13
12
disko . devices = {
14
13
disk = {
15
14
vda = {
16
15
device = "/dev/vda" ;
17
16
type = "disk" ;
18
17
content = {
19
- type = "table" ;
20
- format = "gpt" ;
21
- partitions = [
22
- {
23
- name = "boot" ;
24
- start = "0" ;
25
- end = "1M" ;
26
- part-type = "primary" ;
27
- flags = [ "bios_grub" ] ;
28
- }
29
- {
30
- name = "ESP" ;
31
- start = "1MiB" ;
32
- end = "100MiB" ;
33
- bootable = true ;
18
+ type = "gpt" ;
19
+ partitions = {
20
+ boot = {
21
+ size = "1M" ;
22
+ type = "EF02" ;
23
+ } ;
24
+ ESP = {
25
+ size = "100M" ;
26
+ type = "EF00" ;
34
27
content = {
35
28
type = "filesystem" ;
36
29
format = "vfat" ;
37
30
mountpoint = "/boot" ;
38
31
} ;
39
- }
40
- {
41
- name = "root" ;
42
- start = "100MiB" ;
43
- end = "100%" ;
44
- part-type = "primary" ;
45
- bootable = true ;
32
+ } ;
33
+ root = {
34
+ size = "100%" ;
46
35
content = {
47
36
type = "filesystem" ;
48
37
format = "ext4" ;
49
38
mountpoint = "/" ;
50
39
} ;
51
- }
52
- ] ;
40
+ } ;
41
+ } ;
53
42
} ;
54
43
} ;
55
44
} ;
You can’t perform that action at this time.
0 commit comments