From 06fe648fe55a02b60974d139f72ee0dfce7d4400 Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Sun, 24 May 2026 15:12:03 +0200 Subject: [PATCH] fix: use locked nixpkgs for nushell --- modules/common/shell/0_nushell.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/common/shell/0_nushell.nix b/modules/common/shell/0_nushell.nix index 8ef77c6..30f7f3b 100644 --- a/modules/common/shell/0_nushell.nix +++ b/modules/common/shell/0_nushell.nix @@ -1,6 +1,7 @@ { config, lib, + nixpkgs, pkgs, ... }: @@ -18,10 +19,9 @@ let replaceStrings ; - unstable = import (builtins.fetchTarball { - url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"; - sha256 = if (config.isServer) then "sha256:18ggs7jwmpi58k7xza4axy3cjs17c596ihq5y70h6sryz2hypgba" else (if (config.onLinux) then "sha256:03plivnr4cg0h8v7djf9g2jra09r45pmdiirmy4lvl2n1d4yb7ac" else "sha256:1485vqhb8cwym1m75v61i10j427vazszaklkwj2wmm80k8sijjyz"); - }) { system = pkgs.stdenv.hostPlatform.system; }; + # Use the repo's locked nixos-unstable flake input instead of following the + # moving nixos-unstable tarball, which causes frequent refetches. + unstable = import nixpkgs { system = pkgs.stdenv.hostPlatform.system; }; package = unstable.nushell; in {