nixos/networking: using concatTextFile

This commit is contained in:
Pasquale 2021-11-28 01:28:33 +01:00
parent 0f316ecef2
commit f81734f4e6
No known key found for this signature in database
GPG Key ID: 13160FFB4CEB03F2

@ -190,9 +190,7 @@ in
protocols.source = pkgs.iana-etc + "/etc/protocols";
# /etc/hosts: Hostname-to-IP mappings.
hosts.source = pkgs.runCommand "hosts" {} ''
cat ${escapeShellArgs cfg.hostFiles} > $out
'';
hosts.source = pkgs.concatText "hosts" cfg.hostFiles;
# /etc/netgroup: Network-wide groups.
netgroup.text = mkDefault "";