nix config clean up

This commit is contained in:
Johannes Jöns 2024-01-11 00:11:01 +01:00
parent a16cda8bb7
commit 0b0592cdac

View file

@ -7,9 +7,11 @@ in {
config = lib.mkIf cfg.enable {
nix = {
settings = {
substituters =
[ "https://cache.nixos.org" "https://nix-community.cachix.org" ];
trusted-public-keys = [
substituters = lib.mkForce [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
];
trusted-public-keys = lib.mkForce [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
@ -20,14 +22,14 @@ in {
auto-optimise-store = true;
allowed-users = [ "*" ];
experimental-features = [ "nix-command" "flakes" ];
warn-dirty = false;
warn-dirty = true;
use-xdg-base-directories = true;
};
package = pkgs.nix;
registry = mkForce (lib.mapAttrs (_: flake: { inherit flake; })) ((lib.filterAttrs (_: lib.isType "flake")) self.inputs) // {
registry = lib.mkForce ((lib.mapAttrs (_: flake: { inherit flake; })) ((lib.filterAttrs (_: lib.isType "flake")) self.inputs) // {
self.flake = self;
};
nixPath = mkForce [ "/etc/nix/path" ];
});
nixPath = lib.mkForce [ "/etc/nix/path" ];
};
nixpkgs = {