lib.attrsets. -> lib.

This commit is contained in:
Gerg-L 2023-04-21 10:15:02 -04:00
parent 3ba8494da1
commit 60206e95e1

View file

@ -2,7 +2,6 @@ inputs: {
lib,
pkgs,
self,
settings,
...
}: let
combined_flakes =
@ -25,7 +24,7 @@ in {
#create registry from input flakes
nix.registry = lib.mapAttrs (_: value: {flake = value;}) combined_flakes;
#add all inputs to etc
environment.etc = lib.mapAttrs' (name: value: lib.attrsets.nameValuePair "/nixpath/${name}" {source = value;}) combined_flakes;
environment.etc = lib.mapAttrs' (name: value: lib.nameValuePair "/nixpath/${name}" {source = value;}) combined_flakes;
#source the etc paths to nixPath
nix.nixPath = lib.mapAttrsToList (name: _: name + "=" + "/etc/nixpath/${name}") combined_flakes;