config: remove system as part of extraArgs

We use nixpkgs with the intended system anyways so we could get away
with getting the system from the imported nixpkgs attrset.
This commit is contained in:
Gabriel Arazas 2022-11-17 13:35:19 +08:00
parent 11b27404c3
commit ed893813fe

View File

@ -130,7 +130,7 @@
# The system of the NixOS system. # The system of the NixOS system.
inherit system; inherit system;
lib = lib'; lib = lib';
specialArgs = extraArgs // { inherit system; }; specialArgs = extraArgs;
modules = modules =
# Append with our custom NixOS modules from the modules folder. # Append with our custom NixOS modules from the modules folder.
(lib'.modulesToList (lib'.filesToAttr ./modules/nixos)) (lib'.modulesToList (lib'.filesToAttr ./modules/nixos))
@ -139,7 +139,7 @@
++ extraModules; ++ extraModules;
}; };
hostSharedConfig = { lib, pkgs, system, ... }: { hostSharedConfig = { config, lib, pkgs, ... }: {
# Some defaults for evaluating modules. # Some defaults for evaluating modules.
_module.check = true; _module.check = true;
@ -241,7 +241,7 @@
# We're setting Guix service package with the flake-provided package. # We're setting Guix service package with the flake-provided package.
# This is to prevent problems setting with overlays as much as I like # This is to prevent problems setting with overlays as much as I like
# using them. # using them.
services.guix.package = inputs.guix-overlay.packages.${system}.guix; services.guix.package = inputs.guix-overlay.packages.${config.nixpkgs.system}.guix;
}; };
mkUser = { system ? defaultSystem, extraModules ? [ ] }: mkUser = { system ? defaultSystem, extraModules ? [ ] }: