refactor(grfn): Stop importing nixpkgs a bunch of times
Once is enough! <grfn> https://tazj.in/blobs/touch-garbage.jpg Change-Id: I68f66669e82d35a71752638450fa4b820e137172 Signed-Off-By: Florian Klink <flokli@flokli.de> Reviewed-on: https://cl.tvl.fyi/c/depot/+/3048 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
parent
5f19e8e6a7
commit
b75dd136cb
9 changed files with 12 additions and 35 deletions
|
|
@ -5,13 +5,16 @@ with lib;
|
|||
rec {
|
||||
home = confPath: (import "${pkgs.home-manager.src}/modules" {
|
||||
inherit pkgs;
|
||||
|
||||
configuration = { config, lib, ... }: {
|
||||
imports = [confPath];
|
||||
|
||||
_module.args.pkgs = mkForce
|
||||
(import pkgs.path (filterAttrs (n: v: v != null) config.nixpkgs));
|
||||
|
||||
imports = [ confPath ];
|
||||
lib.depot = depot;
|
||||
|
||||
# home-manager exposes no API to override the package set that
|
||||
# is used, unless called from the NixOS module.
|
||||
#
|
||||
# To get around it, the module argument is overridden here.
|
||||
_module.args.pkgs = mkForce pkgs;
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue