This commit is contained in:
2025-08-16 13:04:59 +00:00
parent e55e7a629f
commit c6088a5283
2 changed files with 3 additions and 17 deletions

View File

@@ -1,4 +1,6 @@
import 'projects/nixos-cluster/justfile'
import 'projects/nomad/justfile'
bootstrap-repos:
mr --trust-all bootstrap /run/user/1000/secrets/mrconfig
@@ -41,22 +43,6 @@ rebuild_home_test:
nix_list_generations:
sudo nix-env --list-generations -p /nix/var/nix/profiles/system
nomad_run SERVICE:
nomad run ~/projects/nomad/nomad_jobs/enabled/{{SERVICE}}.nomad
nomad_purge SERVICE:
nomad stop --purge {{SERVICE}}
nomad_stop SERVICE:
nomad stop ~/projects/nomad/nomad_jobs/enabled/{{SERVICE}}
nomad_exec_bash SERVICE:
ID=$(nomad status {{SERVICE}} | grep "running" | grep "{{SERVICE}}" | head -n 1| awk '{print $1}'); nomad alloc exec -task {{SERVICE}} -t ${ID} /bin/bash
nomad_exec_sh SERVICE:
ID=$(nomad status {{SERVICE}} | grep "running" | grep "{{SERVICE}}" | head -n 1| awk '{print $1}'); nomad alloc exec -task {{SERVICE}} -t ${ID} /bin/sh
nomad_log SERVICE TASK:
ID=$(nomad status {{SERVICE}} | grep "running" | grep "{{SERVICE}}" | head -n 1| awk '{print $1}'); nomad alloc logs -task {{TASK}} ${ID}
run_nicotine:
mullvad connect
-nix-shell -p nicotine-plus --command nicotine-plus

View File

@@ -114,7 +114,7 @@
for command in $({ just --summary; just -l | grep "# alias for " | awk "{print \$1}"; } | tr " " "\\n" | sed "/^default\$/d" | xargs);
do
alias $command="just $command"
alias $command="just --justfile /home/sstent/justfile $command"
done
'';