Skip to content

Commit

Permalink
nixos/fileSystems: omit comment about swap devices if there are no sw…
Browse files Browse the repository at this point in the history
…ap devices on the system (#373857)
  • Loading branch information
SuperSandro2000 authored Feb 24, 2025
2 parents 050bf8f + faadb51 commit f6734c6
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 f6734c6

Please sign in to comment.