Skip to content

Commit

Permalink
hosts.bwpm-FP2CYXKY2V: add mob
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerschtli committed Jun 12, 2024
1 parent 163152a commit 4225347
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/programs/git/prepare-commit-msg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ if ! grep "DB_FOOTER" "${FILE}" &> /dev/null; then
fi

REPLACE=
if [[ "$(git branch-name)" =~ ^feature/(CTMSATOC-[0-9]*).*$ ]]; then
REPLACE="Issue: ${BASH_REMATCH[1]}"
if [[ "$(git branch-name)" =~ ^(mob/)?feature/(CTMSATOC-[0-9]*).*$ ]]; then
REPLACE="Issue: ${BASH_REMATCH[2]}"
fi

sed -i -e "s#DB_FOOTER#${REPLACE}#" "${FILE}"
6 changes: 6 additions & 0 deletions hosts/bwpm-FP2CYXKY2V/home-tobiashapp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@

sessionVariables.KUBECONFIG = "${config.home.homeDirectory}/.kube/ardks-iat-nzfcw.kubeconfig";

file.".mob".text = ''
MOB_TIMER_USER="Tobias"
MOB_DONE_SQUASH="squash-wip"
'';

packages = with pkgs; [
asciidoctor
kubectl
kubelogin-oidc
k9s
mob
nixpkgs-fmt
natscli
nodejs
Expand Down

0 comments on commit 4225347

Please sign in to comment.