2022-10-17 15:54:48 +03:00
|
|
|
{ lib, ... }:
|
2022-07-31 16:09:40 +03:00
|
|
|
let
|
|
|
|
filters = import ./system-filter.nix;
|
2022-10-17 15:38:55 +03:00
|
|
|
doFilter' = system: filterSet: lib.filterAttrs (name: _:
|
2022-07-31 16:09:40 +03:00
|
|
|
filterSet ? "${name}" -> builtins.elem system filterSet."${name}"
|
2022-10-17 15:38:55 +03:00
|
|
|
);
|
2022-07-31 16:09:40 +03:00
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
./projects.nix
|
|
|
|
./patched-inputs.nix
|
2024-07-06 00:59:18 +03:00
|
|
|
./catalog
|
2024-07-16 03:17:23 +03:00
|
|
|
./shadows.nix
|
2022-07-31 16:09:40 +03:00
|
|
|
];
|
|
|
|
perSystem = { pkgs, self', system, ... }: let
|
|
|
|
patched-derivations = import ./patched-derivations.nix (pkgs // { flakePackages = self'.packages; });
|
|
|
|
in {
|
|
|
|
_module.args.filters = filters // { doFilter = doFilter' system; };
|
|
|
|
packages = doFilter' system filters.packages patched-derivations;
|
|
|
|
};
|
|
|
|
}
|