all repos

dotfiles @ bcc3176

i use rach linux btw

dotfiles/nix/hosts/thought/disko-config.nix (view raw)

1
{ lib, ... }:
2
{
3
  disko.devices = {
4
    disk.disk1 = {
5
      device = lib.mkDefault "/dev/vda";
6
      type = "disk";
7
      content = {
8
        type = "gpt";
9
        partitions = {
10
          boot = {
11
            name = "boot";
12
            size = "1M";
13
            type = "EF02";
14
          };
15
          esp = {
16
            name = "ESP";
17
            size = "500M";
18
            type = "EF00";
19
            content = {
20
              type = "filesystem";
21
              format = "vfat";
22
              mountpoint = "/boot";
23
            };
24
          };
25
          root = {
26
            name = "root";
27
            size = "100%";
28
            content = {
29
              type = "lvm_pv";
30
              vg = "pool";
31
            };
32
          };
33
        };
34
      };
35
    };
36
    lvm_vg = {
37
      pool = {
38
        type = "lvm_vg";
39
        lvs = {
40
          root = {
41
            size = "100%FREE";
42
            content = {
43
              type = "filesystem";
44
              format = "ext4";
45
              mountpoint = "/";
46
              mountOptions = [
47
                "defaults"
48
              ];
49
            };
50
          };
51
        };
52
      };
53
    };
54
  };
55
}