My dotfiles (written in Nix, btw!) ❄
1{...}: {
2 disko.devices.disk.main = {
3 type = "disk";
4 device = "/dev/nvme0n1";
5 content = {
6 type = "gpt";
7 partitions = {
8 ESP = {
9 size = "1G";
10 type = "EF00";
11 content = {
12 type = "filesystem";
13 format = "vfat";
14 mountpoint = "/boot";
15 mountOptions = ["umask=0077"];
16 };
17 };
18 swap = {
19 size = "10G";
20 content = {
21 type = "swap";
22 discardPolicy = "both";
23 };
24 };
25 root = {
26 size = "100%";
27 content = {
28 type = "filesystem";
29 format = "ext4";
30 mountpoint = "/";
31 };
32 };
33 };
34 };
35 };
36}