mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-21 00:49:27 +03:00
nixos/fileSystems: omit swap comment if there are no swapDevices
This commit is contained in:
parent
c3ed4a6dc1
commit
faadb5162c
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ in
|
||||||
# Filesystems.
|
# Filesystems.
|
||||||
${makeFstabEntries fileSystems {}}
|
${makeFstabEntries fileSystems {}}
|
||||||
|
|
||||||
# Swap devices.
|
${lib.optionalString (config.swapDevices != []) "# Swap devices."}
|
||||||
${flip concatMapStrings config.swapDevices (sw:
|
${flip concatMapStrings config.swapDevices (sw:
|
||||||
"${sw.realDevice} none swap ${swapOptions sw}\n"
|
"${sw.realDevice} none swap ${swapOptions sw}\n"
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue