nixos/fileSystems: omit swap comment if there are no swapDevices
This commit is contained in:
@@ -400,7 +400,7 @@ in
|
||||
# Filesystems.
|
||||
${makeFstabEntries fileSystems {}}
|
||||
|
||||
# Swap devices.
|
||||
${lib.optionalString (config.swapDevices != []) "# Swap devices."}
|
||||
${flip concatMapStrings config.swapDevices (sw:
|
||||
"${sw.realDevice} none swap ${swapOptions sw}\n"
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user