diff options
author | Pasquale <p3dimaria@hotmail.it> | 2021-11-28 01:28:33 +0100 |
---|---|---|
committer | Pasquale <p3dimaria@hotmail.it> | 2021-11-28 01:40:05 +0100 |
commit | f81734f4e69b0e74bcfc4e84a134387a5763d43c (patch) | |
tree | 79ff20377914aa1ed0593116765516ddf7954710 | |
parent | 0f316ecef2269f084545f137dd880147b5bd492b (diff) |
nixos/networking: using concatTextFile
-rw-r--r-- | nixos/modules/config/networking.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index 11307e331200..334f2e894900 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -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 ""; |