feat: add utility functions
This commit is contained in:
parent
ca71ddac8c
commit
b8d7062228
12 changed files with 177 additions and 156 deletions
|
@ -3,6 +3,8 @@
|
|||
inputs,
|
||||
...
|
||||
}: let
|
||||
_utils = import ../global/utils.nix {inherit lib;};
|
||||
|
||||
toSystem = name: {
|
||||
role,
|
||||
system,
|
||||
|
@ -19,7 +21,7 @@
|
|||
{networking.hostName = name;}
|
||||
];
|
||||
|
||||
specialArgs = inputs;
|
||||
specialArgs = inputs // {inherit _utils;};
|
||||
};
|
||||
in {
|
||||
flake.nixosConfigurations = lib.mapAttrs toSystem {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue