Pass pkgs to machine configs to enable installation of packages there
This commit is contained in:
parent
ac85711356
commit
51c83c8ec0
1 changed files with 7 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue