From ef3b728dd8225e16a3a43b042674361765b41876 Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Thu, 15 May 2025 22:43:10 -0500 Subject: Change modules to pass flake inputs collectively, not individually --- hosts/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'hosts/default.nix') diff --git a/hosts/default.nix b/hosts/default.nix index 015e307..d5770c6 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -1,12 +1,14 @@ -{ nixpkgs, mobile-nixos }: +{ inputs }: let + inherit (inputs) nixpkgs; + mkHost = system: hostname: modules: { "${hostname}" = nixpkgs.lib.nixosSystem { inherit system; modules = [ ../modules ../users ] ++ modules; specialArgs = { - inherit hostname nixpkgs mobile-nixos; + inherit hostname inputs; }; }; }; @@ -30,7 +32,7 @@ let hostsImport = file: import file { - inherit nixpkgs mkHost hosts; + inherit inputs mkHost hosts; }; in hosts { -- cgit v1.2.3