From b8c6ed6ca45b7b3a5e88acb58dc46c011d95b2db Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 26 Jun 2024 16:39:33 +0200 Subject: [PATCH] Only pass inputs to hosts (contains everything) --- flake.nix | 5 ++--- hosts/default.nix | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 2b03ea5..de75be2 100644 --- a/flake.nix +++ b/flake.nix @@ -39,8 +39,7 @@ }; }; - outputs = {self, nixpkgs, ...} @ inputs: let - in { - nixosConfigurations = import ./hosts {inherit nixpkgs inputs self;}; + outputs = {self, nixpkgs, ...} @ inputs: { + nixosConfigurations = import ./hosts {inherit inputs;}; }; } diff --git a/hosts/default.nix b/hosts/default.nix index e334112..d5e7492 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -1,5 +1,6 @@ -{ self, inputs, ... }: +{ inputs, ... }: let + inherit (inputs) self; inherit (inputs.nixpkgs) lib; # A list of shared modules that ALL systems need