clanInternals: refactor configsPerSystem, minimize diff
This commit is contained in:
committed by
pinpox
parent
7255673440
commit
91434044e0
@@ -101,19 +101,15 @@ let
|
|||||||
system:
|
system:
|
||||||
lib.nameValuePair system (
|
lib.nameValuePair system (
|
||||||
lib.mapAttrs (
|
lib.mapAttrs (
|
||||||
name: _:
|
_: machine:
|
||||||
moduleSystemConstructor.${machineClasses.${name}} {
|
machine.extendModules {
|
||||||
modules = [
|
modules = [
|
||||||
(config.outputs.moduleForMachine.${name} or { })
|
|
||||||
(lib.modules.importApply ../machineModules/overridePkgs.nix {
|
(lib.modules.importApply ../machineModules/overridePkgs.nix {
|
||||||
pkgs = pkgsFor.${system};
|
pkgs = pkgsFor.${system};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
specialArgs = {
|
|
||||||
inherit clan-core;
|
|
||||||
} // specialArgs;
|
|
||||||
}
|
}
|
||||||
) allMachines
|
) configurations
|
||||||
)
|
)
|
||||||
) supportedSystems
|
) supportedSystems
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user