diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-05-15 22:43:10 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-05-15 22:49:32 -0500 |
commit | ef3b728dd8225e16a3a43b042674361765b41876 (patch) | |
tree | 238d0ca43014f55eb79773020c6682a9b1bfbfeb /hosts/default.nix | |
parent | 26397a98ece50645e8ad1f0f0a67da32a4c3b4df (diff) | |
download | nixos-config-ef3b728dd8225e16a3a43b042674361765b41876.tar.gz nixos-config-ef3b728dd8225e16a3a43b042674361765b41876.zip |
Change modules to pass flake inputs collectively, not individually
Diffstat (limited to 'hosts/default.nix')
-rw-r--r-- | hosts/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
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 { |