fixed _nomad completes, update to latest, added 'rebuild test' to jsutfiles

This commit is contained in:
2024-01-26 21:06:12 +00:00
parent 409f8a758f
commit dbd492bd10
4 changed files with 40 additions and 84 deletions

View File

@@ -1,8 +1,6 @@
bootstrap-repos:
mr --trust-all bootstrap /run/user/1000/secrets/mrconfig
update-secret-mr:
#!/usr/bin/env bash
cd ~/vmimages
@@ -31,6 +29,16 @@ rebuild_home:
home-manager switch --flake /home/sstent/vmimages/.
systemctl --user restart sops-nix
rebuild_host_test:
sudo nixos-rebuild test --flake /home/sstent/vmimages/.#${HOSTNAME}
rebuild_home_test:
home-manager test --flake /home/sstent/vmimages/.
systemctl --user restart sops-nix
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:
@@ -44,6 +52,8 @@ nomad_exec_bash SERVICE:
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
run_nicotine:
mullvad connect
nix-shell -p nicotine-plus --command nicotine-plus