flake: restructure code for nixosConfig wrapper

main
Felix Stupp 2 months ago
parent 3b21f3e9d5
commit dbfd5c5058
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -58,13 +58,17 @@
nixosConfigurations = nixosConfigurations =
let let
nixpkgs = inputs.nixpkgs;
nixosSystem = nixosSystem =
{ modules, system }: { modules, system }:
inputs.nixpkgs.lib.nixosSystem { let
modules = [ modsExtended = [
outputs.nixosModules.myOptions outputs.nixosModules.myOptions
outputs.nixosModules.withDepends outputs.nixosModules.withDepends
] ++ modules; ] ++ modules;
in
nixpkgs.lib.nixosSystem {
modules = modsExtended;
specialArgs = { specialArgs = {
flake = flakeArg; flake = flakeArg;
}; };

Loading…
Cancel
Save