nichts/nyx/flake/args.nix
2024-04-09 23:11:33 +02:00

32 lines
657 B
Nix

{inputs, ...}: {
perSystem = {
config,
system,
...
}: {
imports = [
{
_module.args = {
pkgs = config.legacyPackages;
pins = import ./npins;
};
}
];
legacyPackages = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
config.allowUnsupportedSystem = true;
overlays = [];
};
};
flake = {
# extended nixpkgs library, contains my custom functions
# such as system builders
lib = import (inputs.self + /lib) {inherit inputs;};
# add `pins` to self so that the flake may refer it freely
pins = import ./npins;
};
}