Add gpu vm
All checks were successful
ShellCheck / shellcheck (push) Successful in 17s

This commit is contained in:
Mathieu Strypsteen 2024-11-20 18:09:24 +01:00
parent 1648634933
commit a0cc8a4fba
Signed by: mathieu
GPG key ID: 782A42E461BC6824
9 changed files with 24 additions and 7 deletions

View file

@ -9,6 +9,8 @@ Host pve
HostName pve.strypsteen.com
Host infra
HostName infra.server.home.arpa
Host gpu
HostName gpu.server.home.arpa
Host home
HostName home.server.home.arpa
Host home-gw

View file

@ -6,7 +6,7 @@ server {
include snippets/local-only.conf;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'" always;
location / {
set $upstream gpu-vm.server.home.arpa;
set $upstream gpu.server.home.arpa;
proxy_pass https://$upstream:47990;
proxy_ssl_verify off;
include snippets/proxy.conf;

View file

@ -0,0 +1,4 @@
[containers]
userns="auto"
read_only=true
tz="local"

1
gpu/etc/hostname Normal file
View file

@ -0,0 +1 @@
gpu

View file

@ -0,0 +1,4 @@
[Desktop Entry]
Name=Firefox
Type=Application
Hidden=true

View file

@ -1,4 +0,0 @@
[Default Applications]
text/html=org.mozilla.firefox.desktop
x-scheme-handler/http=org.mozilla.firefox.desktop
x-scheme-handler/https=org.mozilla.firefox.desktop

7
setup-gpu.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
set -euo pipefail
cp -R desktop/* gpu/* /
sh setup-desktop.sh
systemctl disable auditd
flatpak remote-add --if-not-exists flathub /usr/lib/fedora-third-party/conf.d/fedora-flathub.flatpakrepo
flatpak install com.github.tchx84.Flatseal com.valvesoftware.Steam net.lutris.Lutris org.chromium.Chromium org.gnome.Calculator org.gnome.FileRoller org.gnome.TextEditor org.mozilla.firefox

View file

@ -3,6 +3,5 @@ set -euo pipefail
cp -R desktop/* laptop/* /
sh setup-desktop.sh
systemctl disable auditd
systemctl mask --global grub-boot-success.timer
flatpak remote-add --if-not-exists flathub /usr/lib/fedora-third-party/conf.d/fedora-flathub.flatpakrepo
flatpak install com.github.tchx84.Flatseal com.github.wwmm.easyeffects com.github.xournalpp.xournalpp com.moonlight_stream.Moonlight com.spotify.Client com.valvesoftware.Steam com.vscodium.codium com.yubico.yubioath im.riot.Riot io.mpv.Mpv net.lutris.Lutris org.chromium.Chromium org.gimp.GIMP org.gnome.Boxes org.gnome.Calculator org.gnome.Evince org.gnome.Evolution org.gnome.FileRoller org.gnome.Snapshot org.gnome.TextEditor org.libreoffice.LibreOffice org.mozilla.firefox org.remmina.Remmina org.torproject.torbrowser-launcher

View file

@ -26,5 +26,9 @@ elif [ -d /usr/lib/coreos ]; then
sh setup-infra.sh
fi
elif [ -d /ostree ]; then
if [ "$1" = laptop ]; then
sh setup-laptop.sh
elif [ "$1" = gpu ]; then
sh setup-gpu.sh
fi
fi