chore(nix/darwin): Set nixPath
This commit is contained in:
parent
bc097c86b4
commit
1918e552b5
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue