diff --git a/lib/modules/partition.nix b/lib/modules/partition.nix
index 0fc88601..1673638a 100644
--- a/lib/modules/partition.nix
+++ b/lib/modules/partition.nix
@@ -192,6 +192,10 @@
           format = mkOption {
             type = types.enum (builtins.attrValues fs);
             description = "The file system format of the partition.";
+            default =
+              if (isSwap config)
+              then fs.swap
+              else throw("Partition format not specified.");
           };
 
           size = mkOption {
@@ -254,7 +258,6 @@
             Swap = {
               index = 2;
               type = "swap";
-              format = fs.ntfs;
             };
 
             OS = {