23 lines
543 B
Nix
23 lines
543 B
Nix
{ self, ...} @ inputs:
|
|
let
|
|
inherit (inputs.nixpkgs) lib;
|
|
config-path = "${self}/modules";
|
|
profiles-path = "${self}/profiles";
|
|
|
|
system-args = {
|
|
inherit lib;
|
|
inherit inputs;
|
|
inherit config-path;
|
|
inherit profiles-path;
|
|
};
|
|
|
|
systems = {
|
|
x86_64-linux = import ./x86_64-linux system-args;
|
|
aarch64-linux = import ./aarch64-linux system-args;
|
|
};
|
|
nixosSystems = builtins.attrValues systems;
|
|
in
|
|
{
|
|
nixosConfigurations = lib.attrsets.mergeAttrsList (map (system: system.nixosConfigurations or {}) nixosSystems);
|
|
}
|