Skip to content

Commit

Permalink
fix: nix path and registry is set by default on nixos and on now darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Sep 14, 2024
1 parent 426fcd9 commit cd0fcef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hosts/common/modules/nix/shared.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,11 @@ in
};
nix = {
package = pkgs.nixVersions.latest;
# make `nix run nixpkgs#something` use the same nixpkgs as the one used by this flake.
registry = {
nixpkgs.flake = inputs.nixpkgs;
# Setting only non standards here. Eg. "nixpkgs" is set by default.
nixpkgs-stable.flake = inputs.nixpkgs-stable;
};
settings = {
# NIX_PATH is still used by many useful tools, so we set it to the same value as the one used by this flake.
# https://github.com/NixOS/nix/issues/9574
nix-path = lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs";
auto-optimise-store = lib.mkDefault true;
experimental-features = [
"nix-command"
Expand Down

0 comments on commit cd0fcef

Please sign in to comment.