Revert "utils: now lives in lib.utils globally"
This reverts commit c9944b411e
.
Causes infinite recursion, revert for now while exploring possible
solutions.
This commit is contained in:
parent
c9944b411e
commit
9670fa4b0f
@ -16,8 +16,8 @@
|
||||
overlays = self.overlays;
|
||||
};
|
||||
in {
|
||||
nixosConfigurations =
|
||||
let configs = import ./hosts ({ lib = pkgs.lib; } // args);
|
||||
nixosConfigurations = let configs = import ./hosts args;
|
||||
|
||||
in configs;
|
||||
|
||||
overlay = import ./pkgs;
|
||||
|
@ -1,6 +1,8 @@
|
||||
args@{ lib, home, nixpkgs, self, ... }:
|
||||
args@{ home, nixpkgs, self, ... }:
|
||||
let
|
||||
inherit (lib.utils) recImport;
|
||||
utils = import ../lib/utils.nix { lib = nixpkgs.lib; };
|
||||
|
||||
inherit (utils) recImport;
|
||||
|
||||
inherit (builtins) attrValues removeAttrs;
|
||||
|
||||
|
@ -11,7 +11,6 @@ in rec {
|
||||
# attrs
|
||||
mapFilterAttrs = seive: f: attrs: filterAttrs seive (mapAttrs' f attrs);
|
||||
|
||||
# used in hosts/default.nix
|
||||
recImport = { dir, _import ? base: import "${dir}/${base}.nix" }:
|
||||
mapFilterAttrs (_: v: v != null) (n: v:
|
||||
if n != "default.nix" && hasSuffix ".nix" n && v == "regular"
|
||||
|
@ -3,5 +3,4 @@ final: prev: {
|
||||
prev.callPackage ./applications/display-managers/sddm/themes/chili { };
|
||||
dejavu_nerdfont = prev.callPackage ./data/fonts/dejavu-nerdfont { };
|
||||
purs = prev.callPackage ./shells/zsh/purs { };
|
||||
lib = prev.lib // { utils = import ../lib/utils.nix { lib = prev.lib; }; };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user