mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Break up default.nix into two more files
This commit is contained in:
parent
f17cb11f9f
commit
042bd05bcf
3 changed files with 40 additions and 36 deletions
12
cache.nix
Normal file
12
cache.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ lib, sources }:
|
||||
|
||||
with lib; let
|
||||
getSources = sources: removeAttrs sources [ "__functor" ]; #"dorkfiles" ];
|
||||
source2drv = value: if isDerivation value.outPath then value.outPath else value;
|
||||
sources2drvs = sources: mapAttrs (_: source2drv) (getSources sources);
|
||||
in recurseIntoAttrs rec {
|
||||
local = sources2drvs sources;
|
||||
#hexchen = sources2drvs (import sources.hexchen {}).sources;
|
||||
all = attrValues local; #++ attrValues hexchen;
|
||||
allStr = toString all;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue