mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: provide wrapped packages
This commit is contained in:
parent
fb9e62db99
commit
845afbeaf5
12 changed files with 77 additions and 29 deletions
|
|
@ -7,18 +7,6 @@
|
|||
}:
|
||||
with lib; let
|
||||
inherit (channels.std) string list set;
|
||||
enabledNixosSystems = filterAttrs (_: system: system.config.ci.enable && system.config.type == "NixOS") channels.nixfiles.systems;
|
||||
exportsSystems = let
|
||||
warnSystems = set.filter (_: system: system.config.ci.allowFailure) enabledNixosSystems;
|
||||
toSystems = systems: string.concatMapSep " " string.escapeShellArg (set.keys systems);
|
||||
in ''
|
||||
NF_NIX_SYSTEMS=(${toSystems enabledNixosSystems})
|
||||
NF_NIX_SYSTEMS_WARN=(${toSystems warnSystems})
|
||||
'';
|
||||
buildAllSystems = pkgs.writeShellScriptBin "build-systems" ''
|
||||
${exportsSystems}
|
||||
nix run .#nf-actions-test
|
||||
'';
|
||||
in {
|
||||
imports = [./common.nix];
|
||||
config = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue