Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions modules/mcl-disko/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,25 @@
description = "Declare the type of the primary partition";
};

swap = {
size = mkOption {
type = types.nullOr types.str;
default = "32G";
example = "32768M";
description = "The size of the hard disk space used when RAM is full";
};
swap = mkOption {
type = types.submodule {
options = {
size = mkOption {
type = types.nullOr types.str;
default = "32G";
example = "32768M";
description = "The size of the hard disk space used when RAM is full";
};

randomEncryption = mkOption {
type = types.bool;
default = true;
example = false;
description = "Whether to use random encryption for swap partition";
randomEncryption = mkOption {
type = types.bool;
default = true;
example = false;
description = "Whether to use random encryption for swap partition";
};
};
};
default = { };
};

espSize = mkOption {
Expand Down