From c6088a5283c738312b96f75843ae0f87a8fb35b4 Mon Sep 17 00:00:00 2001 From: sstent Date: Sat, 16 Aug 2025 13:04:59 +0000 Subject: [PATCH] sync --- dotfiles/sstent/justfile | 18 ++---------------- home-manager/users/sstent/default.nix | 2 +- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/dotfiles/sstent/justfile b/dotfiles/sstent/justfile index 435d700..358b2a7 100644 --- a/dotfiles/sstent/justfile +++ b/dotfiles/sstent/justfile @@ -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 diff --git a/home-manager/users/sstent/default.nix b/home-manager/users/sstent/default.nix index f016546..da40baf 100644 --- a/home-manager/users/sstent/default.nix +++ b/home-manager/users/sstent/default.nix @@ -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 '';