pinwheel: Update work-vpn script

This commit is contained in:
Alexander Heldt
2025-12-27 11:00:01 +01:00
parent 4d0e3681cb
commit 6f6090e046
2 changed files with 29 additions and 4 deletions

View File

@@ -34,6 +34,17 @@ in
# for `radio`
pkgs.go-mockery
pkgs.golangci-lint
(pkgs.writeShellScriptBin "work-vpn" ''
case $1 in
up)
sudo sh -c "systemctl start openvpn-work-staging.service; systemctl start openvpn-work-production.service"
;;
down)
sudo sh -c "systemctl stop openvpn-work-staging.service; systemctl stop openvpn-work-production.service"
;;
esac
'')
];
programs.go = lib.mkIf goEnabled {