feat(nixos): pass flakeConfig to nixosSystem specialArgs
This commit is contained in:
parent
eed6e45067
commit
61064b955d
2 changed files with 14 additions and 6 deletions
|
@ -1,10 +1,9 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkMerge;
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
inherit (lib.attrsets) concatMapAttrs;
|
||||
in
|
||||
{
|
||||
flake.lib = {
|
||||
flattenAttrs = attrset: mkMerge (mapAttrsToList (_: v: v) attrset);
|
||||
flattenAttrs = attrset: concatMapAttrs (_: v: v) attrset;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue