pin nixpkgs in NIX_PATH and registry

This commit is contained in:
Adithya 2023-05-28 22:41:04 +05:30
parent 0779ede609
commit fce6a2b40e
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -1,5 +1,9 @@
{...}: { {nixpkgs, ...}: {
nix.settings = { environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
nix = {
nixPath = ["nixpkgs=/etc/nix/inputs/nixpkgs"];
registry.nixpkgs.flake = nixpkgs;
settings = {
trusted-substituters = [ trusted-substituters = [
"https://nix-community.cachix.org/" "https://nix-community.cachix.org/"
]; ];
@ -11,5 +15,6 @@
auto-allocate-uids = true; auto-allocate-uids = true;
use-cgroups = true; use-cgroups = true;
}; };
};
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
} }