mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Nix] Use system nixpkgs and nixpkgs-unstable for nix commands
This commit is contained in:
parent
f4cf605c54
commit
8d3a3ee3e9
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{config, pkgs, lib, myLib, ...}:
|
||||
{config, pkgs, lib, myLib, nixpkgs, nixpkgs-unstable, ...}:
|
||||
with lib;
|
||||
with myLib;
|
||||
let
|
||||
|
|
@ -99,5 +99,10 @@ in
|
|||
nix.settings.cores = mkIf (generalCfg.cores != null) generalCfg.cores;
|
||||
nix.settings.max-jobs = mkIf (generalCfg.cores != null) (math.log2 generalCfg.cores);
|
||||
|
||||
nix.registry = {
|
||||
nixpkgs.flake = nixpkgs;
|
||||
nixpkgs-unstable.flake = nixpkgs-unstable;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue