feat(nixos): pass hostConfig to nixosSystem specialArgs
This commit is contained in:
parent
8f9f400f92
commit
c3c1ca78f6
1 changed files with 2 additions and 2 deletions
|
@ -14,12 +14,12 @@ let
|
||||||
name: value:
|
name: value:
|
||||||
let
|
let
|
||||||
hostName = removePrefix prefix name;
|
hostName = removePrefix prefix name;
|
||||||
|
hostConfig = value;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = hostName;
|
name = hostName;
|
||||||
value = lib.nixosSystem {
|
value = lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs hostName; };
|
specialArgs = { inherit inputs hostName hostConfig; };
|
||||||
#TODO: add profiles system
|
|
||||||
modules = [
|
modules = [
|
||||||
config.flake.profiles.nixos.common
|
config.flake.profiles.nixos.common
|
||||||
(value.extraCfg or { })
|
(value.extraCfg or { })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue