From 5af9716b946370bf6c0ed088337ce84933ff64d2 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Sat, 2 Nov 2024 11:16:03 +0700 Subject: [PATCH] fix(nix): Update nix to 2.19.x Required by brew-nix --- .config/nix/systems/darwin/configuration.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/nix/systems/darwin/configuration.nix b/.config/nix/systems/darwin/configuration.nix index 401db77..57c2cb7 100644 --- a/.config/nix/systems/darwin/configuration.nix +++ b/.config/nix/systems/darwin/configuration.nix @@ -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