From 27504b1dbc2f1c9b6731a2888164f2ece7491df4 Mon Sep 17 00:00:00 2001 From: pazpi Date: Sun, 12 Jan 2025 22:28:34 +0100 Subject: [PATCH] justfile for speed dev up --- justfile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..6278743 --- /dev/null +++ b/justfile @@ -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 \ No newline at end of file