feat(nixos): pass inputs and hostName as specialArgs to nixosSystem
This commit is contained in:
parent
3e11c923ac
commit
f8e81564d3
4 changed files with 32 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue