mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +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.
|
||||
${makeFstabEntries fileSystems {}}
|
||||
|
||||
# Swap devices.
|
||||
${lib.optionalString (config.swapDevices != []) "# Swap devices."}
|
||||
${flip concatMapStrings config.swapDevices (sw:
|
||||
"${sw.realDevice} none swap ${swapOptions sw}\n"
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue