Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
a2e7a0f422
commit
f6996214a7
3 changed files with 9 additions and 36 deletions
|
@ -4,4 +4,4 @@ jobs:
|
|||
runs-on: nixos
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: nix develop -c just check
|
||||
- run: nix flake check
|
||||
|
|
35
justfile
35
justfile
|
@ -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
8
run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
COMMAND="${1:-build}"
|
||||
shift 1
|
||||
|
||||
nh os "$COMMAND" . "$@"
|
Loading…
Add table
Add a link
Reference in a new issue