Skip to content

Commit aac1723

Browse files
committed
fix(mcl-disko): Make swap a submodule
1 parent ba43ffa commit aac1723

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

modules/mcl-disko/default.nix

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,23 @@
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

0 commit comments

Comments
 (0)