aboutsummaryrefslogtreecommitdiff
path: root/desktop/sda-simple.nix
blob: 86263ddcc24ab37d9596f6f99f5b9f5e459edac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This will install a simple system with a root and boot partition.
# Make sure to change the entry device entry to the one that you
# are installing the configuration to.
{
  disko.devices = {
    disk = {
      my-disk = {
        # change this entry
        device = "/dev/sda";
        type = "disk";
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              type = "EF00";
              size = "500M";
              priority = 1;
              content = {
                type = "filesystem";
                format = "vfat";
                mountpoint = "/boot";
                mountOptions = [ "umask=0077" ];
              };
            };
            root = {
              size = "100%";
              priority = 2;
              content = {
                type = "filesystem";
                format = "ext4";
                mountpoint = "/";
              };
            };
          };
        };
      };
    };
  };
}