Depot cannot be stopped and neither can I

This commit is contained in:
kat witch 2021-08-09 02:41:43 +01:00
parent 1f613c6fb7
commit 01460123a6
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
256 changed files with 15 additions and 15 deletions

View file

@ -18,7 +18,7 @@ let
filterAttrNamesToList = filter: set:
lib.foldl' (a: b: a ++ b) [ ]
(map (e: if (filter e set.${e}) then [ e ] else [ ]) (lib.attrNames set));
depotNames = lib.unique ((filterAttrNamesToList (name: type: name != "trusted" && type == "directory") (builtins.readDir ./config)) ++ (filterAttrNamesToList (name: type: name != "pkgs" && type == "directory") (builtins.readDir ./config/trusted)));
depotNames = lib.unique ((filterAttrNamesToList (name: type: name != "trusted" && type == "directory") (builtins.readDir ./depot)) ++ (filterAttrNamesToList (name: type: name != "pkgs" && type == "directory") (builtins.readDir ./depot/trusted)));
depot = lib.mapListToAttrs (folder: lib.nameValuePair folder (lib.domainMerge { inherit folder; })) depotNames;
/*
@ -34,8 +34,8 @@ let
modules = lib.singleton metaConfig
++ lib.attrValues (removeAttrs depot.targets ["common"])
++ lib.attrValues depot.hosts
++ lib.optional (builtins.pathExists ./config/trusted/meta.nix) ./config/trusted/meta.nix
++ lib.singleton ./config/modules/meta/default.nix;
++ lib.optional (builtins.pathExists ./depot/trusted/meta.nix) ./depot/trusted/meta.nix
++ lib.singleton ./depot/modules/meta/default.nix;
specialArgs = {
inherit sources;