File tree 1 file changed +65
-0
lines changed
1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ disko . devices = {
3
+ disk = {
4
+ nvme0 = {
5
+ type = "disk" ;
6
+ device = "/dev/nvme0n1" ;
7
+ content = {
8
+ type = "gpt" ;
9
+ partitions = {
10
+ ESP = {
11
+ type = "EF00" ;
12
+ size = "1024M" ;
13
+ name = "boot" ;
14
+ content = {
15
+ type = "filesystem" ;
16
+ format = "vfat" ;
17
+ mountpoint = "/boot" ;
18
+ mountOptions = [
19
+ "umask=0022"
20
+ "iocharset=utf8"
21
+ "rw"
22
+ ] ;
23
+ } ;
24
+ } ;
25
+ empty = {
26
+ # in order for btrfs raid to work we need to do this
27
+ size = "100%" ;
28
+ } ;
29
+ } ;
30
+ } ;
31
+ } ;
32
+ nvme1 = {
33
+ type = "disk" ;
34
+ device = "/dev/nvme1n1" ;
35
+ content = {
36
+ type = "gpt" ;
37
+ partitions = {
38
+ root = {
39
+ size = "100%" ;
40
+ content = {
41
+ type = "btrfs" ;
42
+ extraArgs = [
43
+ "-f"
44
+ "-m raid1"
45
+ "-d single"
46
+ "/dev/nvme0n1p2" # needs to be partition 2 of 1st disk and needs to be 2nd disk
47
+ ] ;
48
+ mountpoint = "/" ;
49
+ mountOptions = [
50
+ "rw"
51
+ "ssd_spread"
52
+ "max_inline=256"
53
+ "commit=150"
54
+ "compress=zstd"
55
+ "noatime"
56
+ "discard=async"
57
+ ] ;
58
+ } ;
59
+ } ;
60
+ } ;
61
+ } ;
62
+ } ;
63
+ } ;
64
+ } ;
65
+ }
You can’t perform that action at this time.
0 commit comments