diff --git a/lib/modules/partition.nix b/lib/modules/partition.nix
index cbf71084..56edde61 100644
--- a/lib/modules/partition.nix
+++ b/lib/modules/partition.nix
@@ -155,6 +155,12 @@
             default = false;
           };
 
+          type = mkOption {
+            type = types.nullOr (types.either types.str types.int);
+            description = "The type of the partition.";
+            default = null;
+          };
+
           size = mkOption {
             type = types.nullOr types.str;
             description = "The size of the partition.";
@@ -166,12 +172,6 @@
             description = "A script for printing the size to the console.";
             internal = true;
           };
-
-          type = mkOption {
-            type = types.nullOr (types.either types.str types.int);
-            description = "The type of the partition.";
-            default = null;
-          };
         };
 
         config = {