Run treefmt
This commit is contained in:
parent
dc2795129c
commit
3d2748c2d8
2 changed files with 22 additions and 18 deletions
10
nix/lib.nix
10
nix/lib.nix
|
|
@ -35,7 +35,8 @@ let
|
|||
{
|
||||
_file = "${self.printAttrPos (builtins.unsafeGetAttrPos "a" { a = null; })}: inline module";
|
||||
_module.args = {
|
||||
pkgs = let
|
||||
pkgs =
|
||||
let
|
||||
cfg = config.nixpkgs;
|
||||
systemArgs =
|
||||
if cfg.buildPlatform != cfg.hostPlatform then
|
||||
|
|
@ -48,10 +49,13 @@ let
|
|||
system = cfg.hostPlatform;
|
||||
};
|
||||
in
|
||||
import nixpkgs ({
|
||||
import nixpkgs (
|
||||
{
|
||||
overlays = overlays ++ cfg.overlays;
|
||||
inherit (config.nixpkgs) config;
|
||||
} // systemArgs);
|
||||
}
|
||||
// systemArgs
|
||||
);
|
||||
utils = import "${nixos}/lib/utils.nix" {
|
||||
inherit lib config pkgs;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue