mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 14:41:44 +00:00
fixing up mrconfig
adding dotfile for plain text
This commit is contained in:
46
dotfiles/sstent/justfile
Normal file
46
dotfiles/sstent/justfile
Normal file
@@ -0,0 +1,46 @@
|
||||
bootstrap-repos:
|
||||
mr --trust-all bootstrap /run/user/1000/secrets/mrconfig
|
||||
|
||||
update-secret-mr:
|
||||
#!/usr/bin/env bash
|
||||
cd ~/vmimages
|
||||
cp secrets/user_dotfiles/mrconfig secrets/user_dotfiles/mrconfig_old
|
||||
cp ~/.mrconfig secrets/user_dotfiles/mrconfig
|
||||
sops -e --input-type binary -i secrets/user_dotfiles/mrconfig
|
||||
# sops -e --input-type binary secrets/hosts/StuPC/mullvad/device.json
|
||||
# $ sops -e -o krb5.keytab
|
||||
# # an example of what this might result in:
|
||||
# $ head krb5.keytab
|
||||
|
||||
|
||||
# It can be decrypted again like this:
|
||||
|
||||
# $ sops -d krb5.keytab > /tmp/krb5.keytab
|
||||
|
||||
sops-updatekeys:
|
||||
#!/usr/bin/env bash
|
||||
cd ~/vmimages
|
||||
sops updatekeys secrets/user-secrets.yaml
|
||||
sops updatekeys secrets/host-secrets.yaml
|
||||
sops updatekeys secrets/*.yaml
|
||||
|
||||
rebuild:
|
||||
sudo nixos-rebuild switch --flake /home/sstent/vmimages/.#${HOSTNAME}
|
||||
|
||||
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_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_nautilus:
|
||||
mullvad connect
|
||||
nix-shell -p nicotine-plus --command nicotine-plus
|
||||
mullvad disconnect
|
||||
Reference in New Issue
Block a user