fix(nix): Update nix to 2.19.x

Required by brew-nix
This commit is contained in:
Ahmad Ansori Palembani 2024-11-02 11:16:03 +07:00
parent 26c9cfbaed
commit 5af9716b94
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -40,10 +40,10 @@
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
#nix.package = pkgs.nix;
# Necessary for using flakes on this system.
nix.settings.experimental-features = "nix-command flakes";
nix = {
package = pkgs.nixVersions.nix_2_19; # brew-nix requires nix v2.19
settings.experimental-features = "nix-command flakes"; # stopping nix from crying about using experimental features flakes and nix-command
};
# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enableCompletion = false; # causing "insecure directories and files" error if user doesn't have configured zsh