1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-23 20:22:04 +03:00

utils: now lives in lib.utils globally

This commit is contained in:
Timothy DeHerrera 2020-01-05 03:45:59 -07:00
parent e7153d31fe
commit c9944b411e
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
4 changed files with 7 additions and 7 deletions

View File

@ -16,9 +16,9 @@
overlays = self.overlays;
};
in {
nixosConfigurations = let configs = import ./hosts args;
in configs;
nixosConfigurations =
let configs = import ./hosts ({ lib = pkgs.lib; } // args);
in configs;
overlay = import ./pkgs;

View File

@ -1,8 +1,6 @@
args@{ home, nixpkgs, self, ... }:
args@{ lib, home, nixpkgs, self, ... }:
let
utils = import ../lib/utils.nix { lib = nixpkgs.lib; };
inherit (utils) recImport;
inherit (lib.utils) recImport;
inherit (builtins) attrValues removeAttrs;

View File

@ -11,6 +11,7 @@ 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"

View File

@ -3,4 +3,5 @@ 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; }; };
}