flake.nix: update nixosSystem' for nixos-21.11
_module.args instead of extraArgs gets rid of warnings
This commit is contained in:
parent
518e738cc1
commit
317cb8c1e9
15
flake.nix
15
flake.nix
|
@ -192,18 +192,19 @@
|
||||||
nixosConfigurations = let
|
nixosConfigurations = let
|
||||||
nixosSystem' =
|
nixosSystem' =
|
||||||
# Our custom NixOS builder
|
# Our custom NixOS builder
|
||||||
{ nixpkgs ? inputs.nixpkgs, extraArgs ? {}, ... }@args:
|
{ nixpkgs ? inputs.nixpkgs, modules, extraArgs ? {}, system }:
|
||||||
nixpkgs.lib.nixosSystem (nixpkgs.lib.filterAttrs (n: _: n != "nixpkgs") args // {
|
nixpkgs.lib.nixosSystem {
|
||||||
extraArgs = extraArgs // {
|
inherit system;
|
||||||
inherit hostRegistry inputs zentralwerk;
|
modules = modules ++ [
|
||||||
};
|
|
||||||
extraModules = [
|
|
||||||
self.nixosModules.c3d2
|
self.nixosModules.c3d2
|
||||||
({ pkgs, ... }: {
|
({ pkgs, ... }: {
|
||||||
|
_module.args = extraArgs // {
|
||||||
|
inherit hostRegistry inputs zentralwerk;
|
||||||
|
};
|
||||||
nixpkgs.overlays = [ self.overlay ];
|
nixpkgs.overlays = [ self.overlay ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
});
|
};
|
||||||
in {
|
in {
|
||||||
|
|
||||||
freifunk = nixosSystem' {
|
freifunk = nixosSystem' {
|
||||||
|
|
Loading…
Reference in New Issue