From 5583f1ffe96c987d7eab140118b0f64f4514f34d Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 20 Apr 2024 14:55:02 +0800 Subject: [PATCH] fix: option `nix.registry.nixpkgs.to.path' has conflicting definition --- modules/nixos/base/nix.nix | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/nixos/base/nix.nix b/modules/nixos/base/nix.nix index e4371edf..12f5dad0 100644 --- a/modules/nixos/base/nix.nix +++ b/modules/nixos/base/nix.nix @@ -17,13 +17,5 @@ # https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store nix.settings.auto-optimise-store = true; - # make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake. - nix.registry.nixpkgs.flake = nixpkgs; nix.channel.enable = false; # remove nix-channel related tools & configs, we use flakes instead. - - # but NIX_PATH is still used by many useful tools, so we set it to the same value as the one used by this flake. - # Make `nix repl ''` use the same nixpkgs as the one used by this flake. - environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}"; - # https://github.com/NixOS/nix/issues/9574 - nix.settings.nix-path = lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs"; }