all repos — char/flake @ 65563068a2465b8c066008c61746d3b6717fddbd

nixos flake

profiles/onyx/disks.nix (view raw)

 1{ lib, ... }: {
 2  disko.devices.disk.primary = {
 3    device = lib.mkDefault "/dev/disk/by-id/nvme-WD_BLACK_SN850X_2000GB_240264805134";
 4    type = "disk";
 5    content = {
 6      type = "gpt";
 7      partitions = {
 8        ESP = {
 9          size = "4G";
10          type = "EF00";
11          content = {
12            type = "filesystem";
13            format = "vfat";
14            mountpoint = "/boot";
15            mountOptions = [
16              "defaults"
17              "umask=0077"
18            ];
19          };
20        };
21        root = {
22          size = "100%";
23          type = "8300";
24          content = {
25            type = "btrfs";
26            subvolumes = {
27              "/root" = {
28                mountpoint = "/";
29              };
30              "/nix" = {
31                mountOptions = [
32                  "compress=zstd"
33                  "noatime"
34                  "noacl"
35                ];
36                mountpoint = "/nix";
37              };
38            };
39          };
40        };
41      };
42    };
43  };
44}