feat: use the latest version of the nix package manager

This commit is contained in:
Ryan Yin
2024-04-18 11:03:49 +08:00
parent 7fd3baca0f
commit 21d85d41ef
2 changed files with 6 additions and 3 deletions

View File

@@ -15,6 +15,10 @@
../certs/ecc-ca.crt
];
# auto upgrade nix to the unstable version
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/tools/package-management/nix/default.nix#L284
nix.package = pkgs.nixVersions.unstable;
environment.systemPackages = with pkgs; [
git # used by nix flakes
git-lfs # used by huggingface models

View File

@@ -7,7 +7,7 @@
# https://daiderd.com/nix-darwin/manual/index.html#sec-options
#
# History Issues:
# 1. Fixed by replace the determinated nix-installer by the official one:
# 1. Fixed by replace the determined nix-installer by the official one:
# https://github.com/LnL7/nix-darwin/issues/149#issuecomment-1741720259
#
###################################################################################
@@ -15,9 +15,8 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Auto upgrade nix package and the daemon service.
# Auto upgrade the nix-daemon service.
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
# Disable auto-optimise-store because of this issue:
# https://github.com/NixOS/nix/issues/7273