pinwheel: Update work module and related files/secrets

This commit is contained in:
Alexander Heldt
2024-04-10 10:22:23 +02:00
parent 39c4c0bfd5
commit 3a8c83a234
10 changed files with 38 additions and 59 deletions

View File

@@ -82,8 +82,11 @@ let
'';
work-vpn-status = pkgs.writeShellScript "work-vpn-status" ''
ON=$(ls /tmp | grep work-vpn-on | wc -l)
[ "$ON" -gt 0 ] && echo "WORK-VPN ON"
STAGING=$(systemctl is-active openvpn-work-staging.service)
[ "$STAGING" == "active" ] && echo "WORK-VPN STAGING ON" && exit 0
PRODUCTION=$(systemctl is-active openvpn-work-production.service)
[ "$PRODUCTION" == "active" ] && echo "WORK-VPN PRODUCTION ON" && exit 0
'';
toggle-bt-power = pkgs.writeShellScript "toggle-bt-power" ''