main
nix 98 lines 2.24 KB
Raw
1 {
2 disko.devices = {
3 disk = {
4 nvme0n1 = {
5 type = "disk";
6 device = "/dev/disk/by-id/nvme-SAMSUNG_MZVL2512HDJD-00B07_S782NE0W900172";
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 = "/efi/a";
17 };
18 };
19 swap = {
20 size = "16G";
21 content = {
22 type = "swap";
23 };
24 };
25 zfs = {
26 size = "100%";
27 content = {
28 type = "zfs";
29 pool = "zroot";
30 };
31 };
32 };
33 };
34 };
35 nvme1n1 = {
36 type = "disk";
37 device = "/dev/disk/by-id/nvme-SAMSUNG_MZVL2512HDJD-00B07_S782NF0YA37531";
38 content = {
39 type = "gpt";
40 partitions = {
41 esp = {
42 size = "1G";
43 type = "EF00";
44 content = {
45 type = "filesystem";
46 format = "vfat";
47 mountpoint = "/efi/b";
48 };
49 };
50 swap = {
51 size = "16G";
52 content = {
53 type = "swap";
54 };
55 };
56 zfs = {
57 size = "100%";
58 content = {
59 type = "zfs";
60 pool = "zroot";
61 };
62 };
63 };
64 };
65 };
66 };
67 zpool = {
68 zroot = {
69 type = "zpool";
70 options = {
71 ashift = "12";
72 autotrim = "on";
73 };
74 mode = "mirror";
75 rootFsOptions = {
76 acltype = "posixacl";
77 compression = "zstd";
78 mountpoint = "none";
79 };
80
81 datasets = {
82 root = {
83 type = "zfs_fs";
84 mountpoint = "/";
85 };
86 "root/prometheus" = {
87 type = "zfs_fs";
88 mountpoint = "/var/lib/prometheus2";
89 };
90 "root/victoriametrics" = {
91 type = "zfs_fs";
92 mountpoint = "/var/lib/victoriametrics";
93 };
94 };
95 };
96 };
97 };
98 }