justfile for speed dev up
This commit is contained in:
parent
b503b18544
commit
27504b1dbc
1 changed files with 42 additions and 0 deletions
42
justfile
Normal file
42
justfile
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue