From 51c83c8ec060107819f637a2c709e17cc65fdba4 Mon Sep 17 00:00:00 2001 From: Gonne Date: Thu, 20 Feb 2025 16:31:55 +0100 Subject: [PATCH] Pass pkgs to machine configs to enable installation of packages there --- nixos/flake-module.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/flake-module.nix b/nixos/flake-module.nix index bc1769b..1027f0f 100644 --- a/nixos/flake-module.nix +++ b/nixos/flake-module.nix @@ -14,7 +14,13 @@ importedConfig = import (./. + "/machines/${name}/configuration.nix"); systemConfig = if lib.isFunction importedConfig - then x: importedConfig (x // {flake-inputs = inputs;}) + then + x: + importedConfig (x + // { + flake-inputs = inputs; + inherit pkgs; + }) else importedConfig; in pkgs.nixos {