feat(nixos): pass hostName to nixosSystem, move hm modules
This commit is contained in:
parent
f7873d54d3
commit
c26c432890
4 changed files with 7 additions and 5 deletions
|
@ -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 { })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue