pin nixpkgs in NIX_PATH and registry
This commit is contained in:
parent
0779ede609
commit
fce6a2b40e
1 changed files with 17 additions and 12 deletions
|
@ -1,5 +1,9 @@
|
|||
{...}: {
|
||||
nix.settings = {
|
||||
{nixpkgs, ...}: {
|
||||
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
|
||||
nix = {
|
||||
nixPath = ["nixpkgs=/etc/nix/inputs/nixpkgs"];
|
||||
registry.nixpkgs.flake = nixpkgs;
|
||||
settings = {
|
||||
trusted-substituters = [
|
||||
"https://nix-community.cachix.org/"
|
||||
];
|
||||
|
@ -11,5 +15,6 @@
|
|||
auto-allocate-uids = true;
|
||||
use-cgroups = true;
|
||||
};
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue