dotconfig/sv: add

This commit is contained in:
Luc Bijl 2025-08-17 15:02:24 +02:00
parent 2e05501c92
commit f129f83f6d
26 changed files with 159 additions and 0 deletions

5
dotconfig/sv/ampel/conf Executable file
View file

@ -0,0 +1,5 @@
name="ampel"
pod_location="${HOME}/.config/pods/ampel"
bin_location="${HOME}/.local/bin"
command="/usr/bin/podman"
command_args="--network=pasta --replace"

6
dotconfig/sv/ampel/finish Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
. ./conf
exec 2>&1
exec $command kube down ${pod_location}/${name}-pod.yml

7
dotconfig/sv/ampel/run Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
. ./conf
exec 2>&1
$command kube play $command_args ${pod_location}/${name}-pod.yml
exec ${bin_location}/checkpod

5
dotconfig/sv/bitwarden/conf Executable file
View file

@ -0,0 +1,5 @@
name="bitwarden"
pod_location="${HOME}/.config/pods/bitwarden"
bin_location="${HOME}/.local/bin"
command="/usr/bin/podman"
command_args="--network=pasta --replace"

6
dotconfig/sv/bitwarden/finish Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
. ./conf
exec 2>&1
exec $command kube down ${pod_location}/${name}-pod.yml

7
dotconfig/sv/bitwarden/run Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
. ./conf
exec 2>&1
$command kube play $command_args ${pod_location}/${name}-pod.yml
exec ${bin_location}/checkpod

11
dotconfig/sv/caddy/run Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
command="/usr/sbin/caddy"
command_args="run --config ${HOME}/.config/caddy/caddy.json"
exec ps | grep '[${command}] ${command_args}' > /dev/null
if [ $? != 0 ]; then
exec 2>&1
exec $command $command_args
fi

4
dotconfig/sv/dump/run Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
exec snooze -H0-3,5-23 -M0 ${HOME}/.local/bin/dump

5
dotconfig/sv/luc/conf Executable file
View file

@ -0,0 +1,5 @@
name="luc"
pod_location="${HOME}/.config/pods/luc"
bin_location="${HOME}/.local/bin"
command="/usr/bin/podman"
command_args="--network=pasta --replace"

6
dotconfig/sv/luc/finish Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
. ./conf
exec 2>&1
exec $command kube down ${pod_location}/${name}-pod.yml

7
dotconfig/sv/luc/run Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
. ./conf
exec 2>&1
$command kube play $command_args ${pod_location}/${name}-pod.yml
exec ${bin_location}/checkpod

5
dotconfig/sv/matrix/conf Executable file
View file

@ -0,0 +1,5 @@
name="matrix"
pod_location="${HOME}/.config/pods/matrix"
bin_location="${HOME}/.local/bin"
command="/usr/bin/podman"
command_args="--network=pasta --replace"

6
dotconfig/sv/matrix/finish Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
. ./conf
exec 2>&1
exec $command kube down ${pod_location}/${name}-pod.yml

7
dotconfig/sv/matrix/run Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
. ./conf
exec 2>&1
$command kube play $command_args ${pod_location}/${name}-pod.yml
exec ${bin_location}/checkpod

5
dotconfig/sv/media/conf Executable file
View file

@ -0,0 +1,5 @@
name="media"
pod_location="${HOME}/.config/pods/media"
bin_location="${HOME}/.local/bin"
command="/usr/bin/podman"
command_args="--network=pasta --replace"

6
dotconfig/sv/media/finish Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
. ./conf
exec 2>&1
exec $command kube down ${pod_location}/${name}-pod.yml

7
dotconfig/sv/media/run Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
. ./conf
exec 2>&1
$command kube play $command_args ${pod_location}/${name}-pod.yml
exec ${bin_location}/checkpod

5
dotconfig/sv/share/conf Executable file
View file

@ -0,0 +1,5 @@
name="share"
pod_location="${HOME}/.config/pods/share"
bin_location="${HOME}/.local/bin"
command="/usr/bin/podman"
command_args="--network=pasta --replace"

6
dotconfig/sv/share/finish Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
. ./conf
exec 2>&1
exec $command kube down ${pod_location}/${name}-pod.yml

7
dotconfig/sv/share/run Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
. ./conf
exec 2>&1
$command kube play $command_args ${pod_location}/${name}-pod.yml
exec ${bin_location}/checkpod

5
dotconfig/sv/smarthome/conf Executable file
View file

@ -0,0 +1,5 @@
name="smarthome"
pod_location="${HOME}/.config/pods/smarthome"
bin_location="${HOME}/.local/bin"
command="/usr/bin/podman"
command_args="--network=pasta --replace"

6
dotconfig/sv/smarthome/finish Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
. ./conf
exec 2>&1
exec $command kube down ${pod_location}/${name}-pod.yml

7
dotconfig/sv/smarthome/run Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
. ./conf
exec 2>&1
$command kube play $command_args ${pod_location}/${name}-pod.yml
exec ${bin_location}/checkpod

5
dotconfig/sv/tailscale/conf Executable file
View file

@ -0,0 +1,5 @@
name="tailscale"
pod_location="${HOME}/.config/pods/tailscale"
bin_location="${HOME}/.local/bin"
command="/usr/bin/podman"
command_args="--network=pasta --replace"

6
dotconfig/sv/tailscale/finish Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
. ./conf
exec 2>&1
exec $command kube down ${pod_location}/${name}-pod.yml

7
dotconfig/sv/tailscale/run Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
. ./conf
exec 2>&1
$command kube play $command_args ${pod_location}/${name}-pod.yml
exec ${bin_location}/checkpod