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