mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
lib.attrsets. -> lib.
This commit is contained in:
parent
3ba8494da1
commit
60206e95e1
1 changed files with 1 additions and 2 deletions
|
|
@ -2,7 +2,6 @@ inputs: {
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
self,
|
self,
|
||||||
settings,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
combined_flakes =
|
combined_flakes =
|
||||||
|
|
@ -25,7 +24,7 @@ in {
|
||||||
#create registry from input flakes
|
#create registry from input flakes
|
||||||
nix.registry = lib.mapAttrs (_: value: {flake = value;}) combined_flakes;
|
nix.registry = lib.mapAttrs (_: value: {flake = value;}) combined_flakes;
|
||||||
#add all inputs to etc
|
#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
|
#source the etc paths to nixPath
|
||||||
nix.nixPath = lib.mapAttrsToList (name: _: name + "=" + "/etc/nixpath/${name}") combined_flakes;
|
nix.nixPath = lib.mapAttrsToList (name: _: name + "=" + "/etc/nixpath/${name}") combined_flakes;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue