nixos/etc: use runCommandLocal (#133037)

Instead of setting preferLocalBuild & allowSubstitutes explicitly, use
runCommandLocal which sets the same options.
This commit is contained in:
Rouven Czerwinski 2021-08-07 20:56:21 +02:00 committed by GitHub
parent 8fa19a7a6c
commit 06667df72b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,10 +8,7 @@ let
etc' = filter (f: f.enable) (attrValues config.environment.etc);
etc = pkgs.runCommand "etc" {
preferLocalBuild = true;
allowSubstitutes = false;
etc = pkgs.runCommandLocal "etc" {
# This is needed for the systemd module
passthru.targets = map (x: x.target) etc';
} /* sh */ ''