File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 56
56
options . mountpoint = "/nix" ;
57
57
mountpoint = "/nix" ;
58
58
} ;
59
+
60
+ # README MORE: https://wiki.archlinux.org/title/ZFS#Swap_volume
61
+ "root/swap" = {
62
+ type = "zfs_volume" ;
63
+ size = "10M" ;
64
+ content = {
65
+ type = "swap" ;
66
+ } ;
67
+ options = {
68
+ volblocksize = "4096" ;
69
+ compression = "zle" ;
70
+ logbias = "throughput" ;
71
+ sync = "always" ;
72
+ primarycache = "metadata" ;
73
+ secondarycache = "none" ;
74
+ "com.sun:auto-snapshot" = "false" ;
75
+ } ;
76
+ } ;
59
77
} ;
60
78
} ;
61
79
} ;
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ diskoLib.testLib.makeDiskoTest {
13
13
extraTestScript = ''
14
14
machine.succeed("mountpoint /");
15
15
machine.succeed("mountpoint /nix");
16
+ machine.succeed("swapon --show=NAME | grep /dev/zd"); # i.e. /dev/zd0
16
17
'' ;
17
18
}
You can’t perform that action at this time.
0 commit comments