all repos — nixfiles @ 782e0000196146183ee4a7e91e60424c24652d2f

System and user configuration, managed by nix and home-manager

nix: set nix.nixPath

Alan Pearce
commit

782e0000196146183ee4a7e91e60424c24652d2f

parent

72e7e31cefd86fba84924c9b579020a4b733426c

1 file changed, 21 insertions(+), 0 deletions(-)

changed files
A lib/default.nix
@@ -0,0 +1,21 @@
+{ pkgs }: +with builtins; +let + inherit (pkgs) lib; +in +rec { + importPathStore = p: "${append ../. "/${p}"}"; + + mkPathable = s: + if + s.type == "local" + then + lib.path.append ../. s.outPath + else + toString s.outPath + ; + + mkNixPath = sources: lib.attrsets.mapAttrsToList + (k: v: "${k}=${mkPathable v}") + (removeAttrs sources [ "__functor" ]); +}