Pass allHosts as a special arg to the host configs

This commit is contained in:
SebastianStork 2026-02-14 21:37:53 +01:00
parent cb4c268550
commit f27479b861
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI
7 changed files with 16 additions and 11 deletions

View file

@ -8,7 +8,10 @@ let
mkHost =
hostDir:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs self; };
specialArgs = {
inherit inputs self;
inherit (self) allHosts;
};
modules =
(lib.singleton {
networking.hostName = hostDir |> lib.baseNameOf |> lib.unsafeDiscardStringContext;