diff options
| author | Baitinq <[email protected]> | 2023-02-20 21:39:14 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2023-02-20 21:39:14 +0100 |
| commit | 37689a9bfa6b86e7fbe899d6efde9815c6abf2e4 (patch) | |
| tree | ad67798d167eb9c55cd2c3759cc635971fabe9bf /hosts/default.nix | |
| parent | Hosts: Add 'open' alias (diff) | |
| download | nixos-config-37689a9bfa6b86e7fbe899d6efde9815c6abf2e4.tar.gz nixos-config-37689a9bfa6b86e7fbe899d6efde9815c6abf2e4.tar.bz2 nixos-config-37689a9bfa6b86e7fbe899d6efde9815c6abf2e4.zip | |
Flake: Set stateVersion in the hardware set
Diffstat (limited to 'hosts/default.nix')
| -rw-r--r-- | hosts/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/default.nix b/hosts/default.nix index 7347bb8..7623863 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -1,6 +1,6 @@ { lib, inputs, secrets, dotfiles, hosts, hardwares, systems, isNixOS, isIso, isHardware, user, nixpkgs, home-manager, ... }: let - mkHost = { host, hardware, system, timezone, location, extraOverlays, extraModules }: isNixOS: isIso: isHardware: + mkHost = { host, hardware, stateVersion, system, timezone, location, extraOverlays, extraModules }: isNixOS: isIso: isHardware: let pkgs = import nixpkgs { inherit system; @@ -16,7 +16,7 @@ let ] ++ extraOverlays; }; - extraArgs = { inherit pkgs inputs isIso isHardware user secrets dotfiles timezone location hardware system; hostname = host + "-" + hardware; }; + extraArgs = { inherit pkgs inputs isIso isHardware user secrets dotfiles timezone location hardware system stateVersion; hostname = host + "-" + hardware; }; extraSpecialModules = extraModules ++ lib.optional isHardware ../hardware/${hardware} ++ lib.optional isIso "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"; in |