yep, more dotfiles
1{ config
2, ...
3}:
4
5let
6 cfg = config.local.disk;
7in
8{
9 config.disko.devices.disk.primary = {
10 type = "disk";
11 device = cfg.device;
12 content = {
13 type = "gpt";
14 partitions = {
15 boot = {
16 size = "1M";
17 type = "EF02";
18 priority = 1;
19 };
20 ESP = {
21 size = "512M";
22 type = "EF00";
23 content = {
24 type = "filesystem";
25 format = "vfat";
26 mountpoint = "/boot";
27 };
28 };
29 root = {
30 size = "100%";
31 content = {
32 type = "filesystem";
33 format = "ext4";
34 mountpoint = "/";
35 };
36 };
37 };
38 };
39 };
40}