diff options
| author | Baitinq <[email protected]> | 2022-09-21 17:30:36 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2022-09-22 00:18:59 +0200 |
| commit | 4bfaa637cf0782a9e7899bf73da7a47371c1a66e (patch) | |
| tree | d4777433eed01559e1b60e4ea7ddcae3bc058637 /hosts | |
| parent | Move hosts declaration to flake.nix (diff) | |
| download | nixos-config-4bfaa637cf0782a9e7899bf73da7a47371c1a66e.tar.gz nixos-config-4bfaa637cf0782a9e7899bf73da7a47371c1a66e.tar.bz2 nixos-config-4bfaa637cf0782a9e7899bf73da7a47371c1a66e.zip | |
mkHost: Add extraModules argument
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hosts/default.nix b/hosts/default.nix index 6be70b0..2624f14 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -1,6 +1,6 @@ -{ lib, inputs, secrets, dotfiles, hosts, hardwares, extraModules, isNixOS, isIso, isHardware, user, nixpkgs, home-manager, ... }: +{ lib, inputs, secrets, dotfiles, hosts, hardwares, isNixOS, isIso, isHardware, user, nixpkgs, home-manager, ... }: let - mkHost = { host, hardware, system, timezone, location, extraOverlays }: extraModules: isNixOS: isIso: isHardware: + mkHost = { host, hardware, system, timezone, location, extraOverlays, extraModules }: isNixOS: isIso: isHardware: let pkgs = import nixpkgs { inherit system; @@ -60,4 +60,4 @@ in Map each element of the list applying the mkHost function to its elements and returning a set in the listToAttrs format builtins.listToAttrs on the result */ -builtins.listToAttrs (map (mInput@{ host, hardware, system, timezone, location, extraOverlays }: { name = host + "-" + hardware; value = mkHost mInput extraModules isNixOS isIso isHardware; }) permutatedHosts) +builtins.listToAttrs (map (mInput@{ host, hardware, ... }: { name = host + "-" + hardware; value = mkHost mInput isNixOS isIso isHardware; }) permutatedHosts) |