mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: a bunch of things, also hcloud removal
This commit is contained in:
parent
e59be4137b
commit
899e37094f
8 changed files with 40 additions and 32 deletions
|
|
@ -1,24 +1,13 @@
|
|||
{
|
||||
writeShellScriptBin,
|
||||
wrapShellScriptBin,
|
||||
pkgs,
|
||||
inputs
|
||||
makeBinPath
|
||||
}: let
|
||||
inherit (inputs.std) string list set;
|
||||
exports = ''
|
||||
export NF_CONFIG_ROOT=''${NF_CONFIG_ROOT-${toString ../.}}
|
||||
'';
|
||||
exportsSystems = let
|
||||
inherit (inputs.self) systems;
|
||||
nixosSystems = set.filter (_: system: system.ci.enable) systems;
|
||||
warnSystems = set.filter (_: system: system.ci.allowFailure) nixosSystems;
|
||||
toSystems = systems: string.concatMapSep " " string.escapeShellArg (set.keys systems);
|
||||
in ''
|
||||
NF_NIX_SYSTEMS=(${toSystems nixosSystems})
|
||||
NF_NIX_SYSTEMS_WARN=(${toSystems warnSystems})
|
||||
'';
|
||||
in pkgs.writeShellScriptBin "nf-actions-test" ''
|
||||
${exports}
|
||||
${exportsSystems}
|
||||
source ${./actions-test.sh}
|
||||
''
|
||||
}:
|
||||
wrapShellScriptBin "nf-actions-test" ./actions-test.sh {
|
||||
depsRuntimePath = with pkgs; [
|
||||
git
|
||||
cachix
|
||||
jq
|
||||
nix
|
||||
curl
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue