nixos-config/modules/home-manager/profiles/nix-conf.nix
Gabriel Arazas fadfea8215
modules: disable flake registry in Nix settings
Now we'll see what flakes are doing it properly.
2024-05-18 16:41:18 +08:00

32 lines
1.0 KiB
Nix

{ lib, pkgs, ... }: {
# Set the package for generating the configuration.
nix.package = lib.mkDefault pkgs.nixStable;
# Set the configurations for the package manager.
nix.settings = {
# Set several binary caches.
substituters = [
"https://nix-community.cachix.org"
"https://foo-dogsquared.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"foo-dogsquared.cachix.org-1:/2fmqn/gLGvCs5EDeQmqwtus02TUmGy0ZlAEXqRE70E="
];
# Sane config for the package manager.
# TODO: Remove this after nix-command and flakes has been considered
# stable.
#
# Since we're using flakes to make this possible, we need it. Plus, the
# UX of Nix CLI is becoming closer to Guix's which is a nice bonus.
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
auto-optimise-store = lib.mkDefault true;
flake-registry = "";
};
# Stallman-senpai will be disappointed.
nixpkgs.config.allowUnfree = true;
}