forked from zentralwerk/network
pkgs/device-templates: rename device-scripts to .sh for `nix run .#...`
This commit is contained in:
parent
733f04258d
commit
bade3d54c6
|
@ -6,7 +6,7 @@ let
|
|||
|
||||
device-scripts =
|
||||
builtins.mapAttrs (hostName: hostConfig@{ role, model, ... }:
|
||||
pkgs.writeScript "${hostName}.sh" (
|
||||
pkgs.writeScriptBin "${hostName}.sh" (
|
||||
let
|
||||
args = {
|
||||
inherit self hostName config hostConfig pkgs;
|
||||
|
@ -36,7 +36,7 @@ let
|
|||
'' +
|
||||
builtins.concatStringsSep "\n" (
|
||||
map (hostName:
|
||||
"ln -s ${device-scripts.${hostName}} $out/bin/${hostName}.sh"
|
||||
"ln -s ${device-scripts.${hostName}}/bin/${hostName}.sh $out/bin/${hostName}.sh"
|
||||
) (builtins.attrNames device-scripts)
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue