File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change 2929 description = "Declare the type of the primary partition" ;
3030 } ;
3131
32- swap = {
33- size = mkOption {
34- type = types . nullOr types . str ;
35- default = "32G" ;
36- example = "32768M" ;
37- description = "The size of the hard disk space used when RAM is full" ;
38- } ;
32+ swap = mkOption {
33+ type = types . submodule {
34+ options = {
35+ size = mkOption {
36+ type = types . nullOr types . str ;
37+ default = "32G" ;
38+ example = "32768M" ;
39+ description = "The size of the hard disk space used when RAM is full" ;
40+ } ;
3941
40- randomEncryption = mkOption {
41- type = types . bool ;
42- default = true ;
43- example = false ;
44- description = "Whether to use random encryption for swap partition" ;
42+ randomEncryption = mkOption {
43+ type = types . bool ;
44+ default = true ;
45+ example = false ;
46+ description = "Whether to use random encryption for swap partition" ;
47+ } ;
48+ } ;
4549 } ;
4650 } ;
4751
You can’t perform that action at this time.
0 commit comments