justfile for speed dev up

This commit is contained in:
pazpi 2025-01-12 22:28:34 +01:00
parent b503b18544
commit 27504b1dbc

42
justfile Normal file
View file

@ -0,0 +1,42 @@
set positional-arguments
set export
[private]
default:
@just --list --justfile {{justfile()}}
# Run nix flake check
flake-check:
@echo "Running nix flake check..."
nix flake check
flake-build target:
@echo "Running flake check on ${target}..."
nix build ".#nixosConfigurations."${target}".config.system.build.toplevel"
unlink result
# Apply configuration using colmena
apply target:
@echo "Applying configuration to ${target}..."
colmena apply --on ${target}
# Build configuration using colmena
build target:
@echo "Building configuration for ${target}..."
colmena build --on ${target}
# Enter a development shell
dev:
@echo "Entering development shell..."
nix develop
# Run garbage collection
gc:
@echo "Running garbage collection..."
nix-collect-garbage -d
alias a:= apply
alias b:= build
alias d:= dev
alias fb:= flake-build
alias fc:= flake-check