Back to simple bash scripts
Some checks are pending
/ check (push) Waiting to run

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-29 20:28:16 +01:00
parent a2e7a0f422
commit f6996214a7
3 changed files with 9 additions and 36 deletions

View file

@ -4,4 +4,4 @@ jobs:
runs-on: nixos runs-on: nixos
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: nix develop -c just check - run: nix flake check

View file

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

8
run Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
COMMAND="${1:-build}"
shift 1
nh os "$COMMAND" . "$@"