feat: add justfile to make nix run commands easier to run
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-02-17 14:03:52 -05:00
parent 018a5aee9e
commit 9e2fb19146
2 changed files with 25 additions and 1 deletions

24
justfile Normal file
View file

@ -0,0 +1,24 @@
default:
@just --list
docs args:
nix run "$FLAKE"#gen-docs
genflake:
#!/usr/bin/env bash
# Get changes from inputs/default.nix
nix run "$FLAKE"#genflake "$FLAKE"/flake.nix &&
# Evaluate `follows` from new flake.lock
nix run "$FLAKE"#genflake "$FLAKE"/flake.nix &&
# Make sure everything is right
nix run "$FLAKE"#genflake "$FLAKE"/flake.nix
alejandra -q "$FLAKE"/flake.nix
[positional-arguments]
pin args:
nix run "$FLAKE"#pin-inputs -- "$@"
[positional-arguments]
update args:
nix run "$FLAKE"#update-sources -- "$@"

View file

@ -48,7 +48,7 @@ in {
undollar
;
inherit (pkgs) alejandra;
inherit (pkgs) alejandra just;
# Archiving
inherit