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
|
||||
nixosSystem' =
|
||||
# Our custom NixOS builder
|
||||
{ nixpkgs ? inputs.nixpkgs, extraArgs ? {}, ... }@args:
|
||||
nixpkgs.lib.nixosSystem (nixpkgs.lib.filterAttrs (n: _: n != "nixpkgs") args // {
|
||||
extraArgs = extraArgs // {
|
||||
inherit hostRegistry inputs zentralwerk;
|
||||
};
|
||||
extraModules = [
|
||||
{ nixpkgs ? inputs.nixpkgs, modules, extraArgs ? {}, system }:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = modules ++ [
|
||||
self.nixosModules.c3d2
|
||||
({ pkgs, ... }: {
|
||||
_module.args = extraArgs // {
|
||||
inherit hostRegistry inputs zentralwerk;
|
||||
};
|
||||
nixpkgs.overlays = [ self.overlay ];
|
||||
})
|
||||
];
|
||||
});
|
||||
};
|
||||
in {
|
||||
|
||||
freifunk = nixosSystem' {
|
||||
|
|
Loading…
Reference in New Issue