feat(nixos): pass hostConfig to nixosSystem specialArgs

This commit is contained in:
Mohammad Rafiq 2025-07-06 05:42:08 +08:00
parent 4baf606551
commit b984f5a084
No known key found for this signature in database

View file

@ -14,12 +14,12 @@ let
name: value:
let
hostName = removePrefix prefix name;
hostConfig = value;
in
{
name = hostName;
value = lib.nixosSystem {
specialArgs = { inherit inputs hostName; };
#TODO: add profiles system
specialArgs = { inherit inputs hostName hostConfig; };
modules = [
config.flake.profiles.nixos.common
(value.extraCfg or { })