You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
742 B
Nix
33 lines
742 B
Nix
{ inputs, lib, ... }@flakeArg:
|
|
let
|
|
nixpkgs = inputs.nixpkgs;
|
|
libO = nixpkgs.lib;
|
|
in
|
|
libO
|
|
// {
|
|
|
|
# groups
|
|
|
|
modules = libO.modules // lib.importFlakeMod ./modules.nix;
|
|
|
|
types = libO.types // lib.importFlakeMod ./types.nix;
|
|
|
|
x-banananetwork-unused = lib.importFlakeMod ./unused.nix;
|
|
|
|
# functions
|
|
|
|
supportedSystems = builtins.attrNames nixpkgs.legacyPackages;
|
|
|
|
systemSpecificVars = system: {
|
|
pkgs = import nixpkgs { inherit system; };
|
|
pkgs_unstable = import inputs.nixpkgs_unstable { inherit system; };
|
|
inherit system;
|
|
};
|
|
|
|
forAllSystems =
|
|
gen: lib.genAttrs lib.supportedSystems (system: gen (lib.systemSpecificVars system));
|
|
|
|
importFlakeModWithSystem = path: lib.forAllSystems (lib.importFlakeMod path);
|
|
|
|
}
|