mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 15:56:33 +01:00
nix config clean up
This commit is contained in:
parent
a16cda8bb7
commit
0b0592cdac
1 changed files with 9 additions and 7 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue