1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-05-30 08:37:01 +02:00

fix: use locked nixpkgs for nushell

This commit is contained in:
TheGeneralist 2026-05-24 15:12:03 +02:00
parent 2685e94483
commit 06fe648fe5
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -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
{