nixos/scripts/update_nixpkgs.sh
Jake Hillion 80b4305e60
All checks were successful
continuous-integration/drone/push Build is passing
scripts: add update_nixpkgs
add simple script to update nix shell/run nixpkgs to match flake
nixpkgs-unstable input. this avoids having it set to the default of
nixpkgs-unstable and downloading 30MB tarballs all the time.
2024-03-01 14:44:25 +00:00

6 lines
232 B
Bash
Executable File

#!/bin/sh
set -xe
VERSION=`curl https://gitea.hillion.co.uk/JakeHillion/nixos/raw/branch/main/flake.lock | nix run nixpkgs#jq -- -r '.nodes."nixpkgs-unstable".locked.rev'`
nix registry add nixpkgs "github:NixOS/nixpkgs/${VERSION}"