forked from pub-solar/os
1
0
Fork 0
os/default.nix

37 lines
768 B
Nix
Raw Normal View History

2021-01-18 17:34:53 +00:00
let
inherit (default.inputs.nixos) lib;
2021-05-16 17:22:40 +00:00
default = (import ./lib/compat).defaultNix;
ciSystems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
];
2022-11-20 22:28:23 +00:00
filterSystems =
lib.filterAttrs
(system: _: lib.elem system ciSystems);
2022-11-20 22:28:23 +00:00
recurseIntoAttrsRecursive = lib.mapAttrs (
_: v:
if lib.isAttrs v
then recurseIntoAttrsRecursive (lib.recurseIntoAttrs v)
else v
);
2022-11-20 22:28:23 +00:00
systemOutputs =
lib.filterAttrs
(
name: set:
lib.isAttrs set
&& lib.any
(system: set ? ${system} && name != "legacyPackages")
ciSystems
)
default.outputs;
ciDrvs = lib.mapAttrs (_: system: filterSystems system) systemOutputs;
2021-01-18 17:34:53 +00:00
in
2022-11-20 22:28:23 +00:00
(recurseIntoAttrsRecursive ciDrvs) // {shell = import ./shell.nix;}