nixos-configs/justfile
matt1432 9e2fb19146
All checks were successful
Discord / discord commits (push) Has been skipped
feat: add justfile to make nix run commands easier to run
2025-02-17 14:03:52 -05:00

24 lines
547 B
Makefile

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 -- "$@"