flake.nix: update nixosSystem' for nixos-21.11

_module.args instead of extraArgs gets rid of warnings
This commit is contained in:
Astro 2022-01-08 01:52:17 +01:00
parent 518e738cc1
commit 317cb8c1e9
1 changed files with 8 additions and 7 deletions

View File

@ -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' {