chore(nix/darwin): Set nixPath

This commit is contained in:
Ahmad Ansori Palembani 2024-11-05 21:36:19 +07:00
parent bc097c86b4
commit 1918e552b5
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -62,12 +62,16 @@ in {
pkgs.lf pkgs.lf
pkgs.yazi # lf replacement, need further testing pkgs.yazi # lf replacement, need further testing
]; ];
environment.extraSetup = ''
ln -sv ${pkgs.path} $out/nixpkgs
'';
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
nix = { nix = {
package = pkgs.nix; package = pkgs.nix;
settings.experimental-features = "nix-command flakes"; # stopping nix from crying about using experimental features flakes and nix-command 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. # Create /etc/zshrc that loads the nix-darwin environment.