main
1_: {
2 disko.devices = {
3 disk = {
4 root = {
5 type = "disk";
6 device = "/dev/nvme0n1";
7 content = {
8 type = "gpt";
9 partitions = {
10 ESP = {
11 size = "1G";
12 type = "EF00";
13 content = {
14 type = "filesystem";
15 format = "vfat";
16 mountpoint = "/boot";
17 mountOptions = [ "umask=0077" ];
18 };
19 };
20 root = {
21 size = "100%";
22 content = {
23 type = "luks";
24 name = "cryptroot";
25 askPassword = true;
26 settings = {
27 allowDiscards = true;
28 };
29 content = {
30 type = "filesystem";
31 format = "ext4";
32 mountpoint = "/";
33 mountOptions = [
34 "noatime"
35 "nodiratime"
36 "discard"
37 ];
38 };
39 };
40 };
41 };
42 };
43 };
44 };
45 };
46}