hosts: set nixpkgs.pkgs
This commit is contained in:
parent
af1cd6e0b6
commit
81e44bf522
1 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, withSystem, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mapAttrs nixosSystem;
|
||||
|
@ -6,8 +6,12 @@ let
|
|||
|
||||
mkNixOS = name: host: nixosSystem {
|
||||
specialArgs = config.lib.summon name lib.id;
|
||||
inherit (host) system;
|
||||
modules = [ host.nixos ] ++ config.cluster.config.out.injectNixosConfig name;
|
||||
modules = [
|
||||
host.nixos
|
||||
(withSystem host.system ({ pkgs, ... }: {
|
||||
nixpkgs = { inherit pkgs; };
|
||||
}))
|
||||
] ++ config.cluster.config.out.injectNixosConfig name;
|
||||
};
|
||||
in {
|
||||
flake.nixosConfigurations = mapAttrs mkNixOS (gods.fromLight // gods.fromFlesh);
|
||||
|
|
Loading…
Reference in a new issue