refactor: macos's nixpkgs registry

This commit is contained in:
Ryan Yin committed 2024-04-20 14:02:56 +08:00
1 parent cad8cf325d
commit 6b016a2432
2 files changed
+13 -8

No files matched your search

-7
View File
@@ -18,13 +18,6 @@ in
++ [
({lib, ...}: {
nixpkgs.pkgs = import nixpkgs {inherit system;};
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
nix.registry.nixpkgs.flake = nixpkgs;
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
# discard all the default paths, and only use the one from this flake.
nix.nixPath = lib.mkForce ["/etc/nix/inputs"];
})
]
++ (