feat(nixos): pass inputs and hostName as specialArgs to nixosSystem

This commit is contained in:
Mohammad Rafiq 2025-07-06 04:55:10 +08:00
parent 5b5849dfd7
commit 12b804340f
No known key found for this signature in database
4 changed files with 32 additions and 6 deletions

View file

@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
lib,
inputs,
...
}:
let
inherit (lib.trivial) pipe;
inherit (lib.attrsets) filterAttrs mapAttrs';
@ -13,10 +18,8 @@ let
{
name = hostName;
value = lib.nixosSystem {
modules = [
value
{ networking = { inherit hostName; }; }
];
specialArgs = { inherit inputs hostName; };
modules = [ value ];
};
};
in