From 1918e552b5d6fe2c14f5827e20c2cdc0400f53b5 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Tue, 5 Nov 2024 21:36:19 +0700 Subject: [PATCH] chore(nix/darwin): Set nixPath --- nix/systems/darwin/configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/systems/darwin/configuration.nix b/nix/systems/darwin/configuration.nix index 132b84f..f99af12 100644 --- a/nix/systems/darwin/configuration.nix +++ b/nix/systems/darwin/configuration.nix @@ -62,12 +62,16 @@ in { pkgs.lf pkgs.yazi # lf replacement, need further testing ]; + environment.extraSetup = '' + ln -sv ${pkgs.path} $out/nixpkgs + ''; # Auto upgrade nix package and the daemon service. services.nix-daemon.enable = true; nix = { package = pkgs.nix; settings.experimental-features = "nix-command flakes"; # stopping nix from crying about using experimental features flakes and nix-command + nixPath = [ "nixpkgs=/run/current-system/sw/nixpkgs" ]; }; # Create /etc/zshrc that loads the nix-darwin environment.