nixos/networking: using concatTextFile
This commit is contained in:
@@ -190,9 +190,7 @@ in
|
|||||||
protocols.source = pkgs.iana-etc + "/etc/protocols";
|
protocols.source = pkgs.iana-etc + "/etc/protocols";
|
||||||
|
|
||||||
# /etc/hosts: Hostname-to-IP mappings.
|
# /etc/hosts: Hostname-to-IP mappings.
|
||||||
hosts.source = pkgs.runCommand "hosts" {} ''
|
hosts.source = pkgs.concatText "hosts" cfg.hostFiles;
|
||||||
cat ${escapeShellArgs cfg.hostFiles} > $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
# /etc/netgroup: Network-wide groups.
|
# /etc/netgroup: Network-wide groups.
|
||||||
netgroup.text = mkDefault "";
|
netgroup.text = mkDefault "";
|
||||||
|
|||||||
Reference in New Issue
Block a user