fix: revert nix to 2.22 to avoid CVE-2024-45593

This commit is contained in:
Ryan Yin
2024-09-11 23:40:22 +08:00
parent d20d46606d
commit 6aef21ec8f

View File

@@ -19,7 +19,8 @@
# 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.latest;
# nix.package = pkgs.nixVersions.latest;
nix.package = pkgs.nixVersions.nix_2_22;
environment.systemPackages = with pkgs; [
git # used by nix flakes