mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-23 01:08:32 +02:00
feat: use the latest version of the nix package manager
This commit is contained in:
@@ -15,6 +15,10 @@
|
|||||||
../certs/ecc-ca.crt
|
../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; [
|
environment.systemPackages = with pkgs; [
|
||||||
git # used by nix flakes
|
git # used by nix flakes
|
||||||
git-lfs # used by huggingface models
|
git-lfs # used by huggingface models
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# https://daiderd.com/nix-darwin/manual/index.html#sec-options
|
# https://daiderd.com/nix-darwin/manual/index.html#sec-options
|
||||||
#
|
#
|
||||||
# History Issues:
|
# 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
|
# https://github.com/LnL7/nix-darwin/issues/149#issuecomment-1741720259
|
||||||
#
|
#
|
||||||
###################################################################################
|
###################################################################################
|
||||||
@@ -15,9 +15,8 @@
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Auto upgrade nix package and the daemon service.
|
# Auto upgrade the nix-daemon service.
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
nix.package = pkgs.nix;
|
|
||||||
|
|
||||||
# Disable auto-optimise-store because of this issue:
|
# Disable auto-optimise-store because of this issue:
|
||||||
# https://github.com/NixOS/nix/issues/7273
|
# https://github.com/NixOS/nix/issues/7273
|
||||||
|
|||||||
Reference in New Issue
Block a user