shell: add ISO + SD image runners

This commit is contained in:
kat witch 2021-09-09 03:34:24 +01:00
parent 9628de11be
commit d6d174de5a
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -55,10 +55,15 @@ with lib; pkgs.mkShell {
nf-actions-test
] ++ config.runners.lazy.nativeBuildInputs
++ (map
(node: writeShellScriptBin "${node.networking.hostName}-img" ''
(node: writeShellScriptBin "${node.networking.hostName}-sd-img" ''
nix build -f . network.nodes.${node.networking.hostName}.system.build.sdImage --show-trace
'')
(filter (node: node.system.build ? sdImage) (attrValues meta.network.nodes)));
(filter (node: node.system.build ? sdImage) (attrValues meta.network.nodes)))
++ (map
(node: writeShellScriptBin "${node.networking.hostName}-iso-img" ''
nix build -f . network.nodes.${node.networking.hostName}.system.build.isoImage --show-trace
'')
(filter (node: node.system.build ? isoImage) (attrValues meta.network.nodes)));
shellHook = ''
export HOME_HOSTNAME=$(hostname -s)
export HOME_UID=$(id -u)