mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-02 21:54:45 +00:00
primaryIPAddress is defined using lib.optionalString. If it is the empty string (because there are no assigned IP addresses), and the machine has a hostname, we don't want to generate an invalid hosts file with that empty string as the first (IP address) field.
6.6 KiB
6.6 KiB