0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/fileSystems: omit comment about swap devices if there are no swap devices on the system (#373857)

This commit is contained in:
Sandro 2025-02-24 15:20:57 +01:00 committed by GitHub
commit f6734c6849
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"
)}