feat(nixos): pass hostConfig to nixosSystem specialArgs

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

View file

@ -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 { })