mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43: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,
|
||||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue