Skip to content

Instantly share code, notes, and snippets.

@nrdxp
nrdxp / extensions.nix
Created September 27, 2022 21:04
extending `std` actions
{
std,
nixpkgs,
...
}: {
nomadJobManifests = name: let
type = std.nomadJobManifests name;
in
type
// {
@nrdxp
nrdxp / sbt-lock.sh
Last active May 11, 2022 21:44
SBT lock file
REPO_DIR="$(git rev-parse --show-toplevel)"
LOCK_FILE="$REPO_DIR/nix/cloud/packages/<ommited>/deps.lock"
cd $REPO_DIR
# We want our lock file to be reproducible so ensure the cache from previous runs is removed
rm -rf .nix
# This is for CI to check if the lockfile has changed
if eval __argCheck__; then
lock_hash=$(nix hash file "$LOCK_FILE")