25 lines
717 B
Nix
25 lines
717 B
Nix
{ nixpkgs
|
|
, pkgs
|
|
, ...
|
|
}: {
|
|
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
|
|
nix = {
|
|
package = pkgs.nixFlakes;
|
|
nixPath = [ "nixpkgs=/etc/nix/inputs/nixpkgs" ];
|
|
registry.nixpkgs.flake = nixpkgs;
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
experimental-features = [ "nix-command" "flakes" "auto-allocate-uids" "cgroups" "ca-derivations" ];
|
|
auto-allocate-uids = true;
|
|
sandbox = true;
|
|
trusted-substituters = [
|
|
"https://nix-community.cachix.org/"
|
|
];
|
|
trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
trusted-users = [ "@wheel" ];
|
|
use-cgroups = true;
|
|
};
|
|
};
|
|
}
|