tami-nix-infra/profiles/nix-nixpkgs.nix

26 lines
667 B
Nix
Raw Normal View History

2023-05-15 21:47:22 +03:00
{ inputs, ... }:
{
environment.etc."nix/flake-channels/nixpkgs".source = inputs.nixpkgs;
nix = {
registry.nixpkgs.flake = inputs.nixpkgs;
nixPath = [ "nixpkgs=/etc/nix/flake-channels/nixpkgs" ];
settings = {
experimental-features = [ "nix-command" "flakes" ];
builders-use-substitutes = true;
auto-optimise-store = true;
warn-dirty = false;
trusted-users = [ "@wheel" ];
substituters = [
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
};
nixpkgs.config.allowUnfree = true;
}