diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 23e393f86..87f702e6c 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -78,14 +78,9 @@ chooseDisk ${diskVarName} "Which disk do you wish to install the OS on?"; ''; - partitions = builtins.foldl' - (list: predicate: lib.lists.sortOn predicate list) - (builtins.filter (_: _ != null) (builtins.attrValues config.partitions)) - [ - (_: _.index) - (_: _.order) - (_: if ((!isSwap _) && (_.size == null)) then 1 else 0) - ]; + partitions = lib.lists.sortOn + (_: _.index) + (builtins.filter (_: _ != null) (builtins.attrValues config.partitions)); mkType = type: lib.strings.escapeShellArg ( @@ -220,12 +215,6 @@ description = "The index of the partition."; }; - order = mkOption { - type = types.int; - description = "The sort order of the partition creation."; - default = 0; - }; - label = mkOption { type = types.str; description = "The label of the partition.";