mirror of
https://github.com/sstent/vmimages.git
synced 2026-02-15 19:56:17 +00:00
sync
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
import 'projects/nixos-cluster/justfile'
|
import 'projects/nixos-cluster/justfile'
|
||||||
|
import 'projects/nomad/justfile'
|
||||||
|
|
||||||
|
|
||||||
bootstrap-repos:
|
bootstrap-repos:
|
||||||
mr --trust-all bootstrap /run/user/1000/secrets/mrconfig
|
mr --trust-all bootstrap /run/user/1000/secrets/mrconfig
|
||||||
@@ -41,22 +43,6 @@ rebuild_home_test:
|
|||||||
nix_list_generations:
|
nix_list_generations:
|
||||||
sudo nix-env --list-generations -p /nix/var/nix/profiles/system
|
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:
|
run_nicotine:
|
||||||
mullvad connect
|
mullvad connect
|
||||||
-nix-shell -p nicotine-plus --command nicotine-plus
|
-nix-shell -p nicotine-plus --command nicotine-plus
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
|
|
||||||
for command in $({ just --summary; just -l | grep "# alias for " | awk "{print \$1}"; } | tr " " "\\n" | sed "/^default\$/d" | xargs);
|
for command in $({ just --summary; just -l | grep "# alias for " | awk "{print \$1}"; } | tr " " "\\n" | sed "/^default\$/d" | xargs);
|
||||||
do
|
do
|
||||||
alias $command="just $command"
|
alias $command="just --justfile /home/sstent/justfile $command"
|
||||||
done
|
done
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user