Pass pkgs to machine configs to enable installation of packages there

This commit is contained in:
Gonne 2025-02-20 16:31:55 +01:00
parent ac85711356
commit 51c83c8ec0

View file

@ -14,7 +14,13 @@
importedConfig = import (./. + "/machines/${name}/configuration.nix"); importedConfig = import (./. + "/machines/${name}/configuration.nix");
systemConfig = systemConfig =
if lib.isFunction importedConfig if lib.isFunction importedConfig
then x: importedConfig (x // {flake-inputs = inputs;}) then
x:
importedConfig (x
// {
flake-inputs = inputs;
inherit pkgs;
})
else importedConfig; else importedConfig;
in in
pkgs.nixos { pkgs.nixos {