diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index f56dc367..1cc28df3 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -4,4 +4,4 @@ jobs: runs-on: nixos steps: - uses: actions/checkout@v4 - - run: nix develop -c just check + - run: nix flake check diff --git a/justfile b/justfile deleted file mode 100644 index 660bf9dc..00000000 --- a/justfile +++ /dev/null @@ -1,35 +0,0 @@ -alias b := build -alias s := switch -alias t := test -alias u := update - -_default: - just --list - -build *args: - @just _nixos build {{ args }} - -check: - nix flake check - -clean: - nh clean all - -collect-garbage: - nix-collect-garbage -d - sudo nix-collect-garbage -d - -format: - nix fmt flake.nix hosts modules - -switch *args: - @just _nixos switch {{ args }} - -test *args: - @just _nixos test {{ args }} - -update: - nix flake update --commit-lock-file - -_nixos command *args: - nh os {{ command }} . {{ args }} diff --git a/run b/run new file mode 100755 index 00000000..7edc738b --- /dev/null +++ b/run @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -euo pipefail + +COMMAND="${1:-build}" +shift 1 + +nh os "$COMMAND" . "$@"