Skip to content

Commit

Permalink
nixos/fileSystems: omit swap comment if there are no swapDevices
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn8901 committed Feb 23, 2025
1 parent c3ed4a6 commit faadb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/tasks/filesystems.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)}
Expand Down

0 comments on commit faadb51

Please sign in to comment.