feat(nixos): pass hostName to nixosSystem, move hm modules

This commit is contained in:
Mohammad Rafiq 2025-07-07 06:48:19 +08:00
parent f7873d54d3
commit c26c432890
No known key found for this signature in database
4 changed files with 7 additions and 5 deletions

View file

@ -13,10 +13,13 @@ let
mkConfigurations =
class: hosts:
mapAttrs (
_: value:
name: value:
if class == "nixos" then
nixosSystem {
specialArgs = { inherit inputs; };
specialArgs = {
inherit inputs;
hostName = name;
};
modules = [
(flattenAttrs cfg.modules.nixos)
(value.extraCfg or { })