diff --git a/common/etc/ssh/ssh_config b/common/etc/ssh/ssh_config index 6e2c515..fdfa16e 100644 --- a/common/etc/ssh/ssh_config +++ b/common/etc/ssh/ssh_config @@ -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 diff --git a/container-config/nginx/sites/remote-desktop b/container-config/nginx/sites/remote-desktop index 9b22c8c..db2c34a 100644 --- a/container-config/nginx/sites/remote-desktop +++ b/container-config/nginx/sites/remote-desktop @@ -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; diff --git a/gpu/etc/containers/containers.conf b/gpu/etc/containers/containers.conf new file mode 100644 index 0000000..b943671 --- /dev/null +++ b/gpu/etc/containers/containers.conf @@ -0,0 +1,4 @@ +[containers] +userns="auto" +read_only=true +tz="local" diff --git a/gpu/etc/hostname b/gpu/etc/hostname new file mode 100644 index 0000000..927fa94 --- /dev/null +++ b/gpu/etc/hostname @@ -0,0 +1 @@ +gpu diff --git a/gpu/var/usrlocal/share/applications/firefox.desktop b/gpu/var/usrlocal/share/applications/firefox.desktop new file mode 100644 index 0000000..a1de065 --- /dev/null +++ b/gpu/var/usrlocal/share/applications/firefox.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Name=Firefox +Type=Application +Hidden=true diff --git a/laptop/var/usrlocal/share/applications/mimeapps.list b/laptop/var/usrlocal/share/applications/mimeapps.list deleted file mode 100644 index 59cbaec..0000000 --- a/laptop/var/usrlocal/share/applications/mimeapps.list +++ /dev/null @@ -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 diff --git a/setup-gpu.sh b/setup-gpu.sh new file mode 100644 index 0000000..ed0d46f --- /dev/null +++ b/setup-gpu.sh @@ -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 diff --git a/setup-laptop.sh b/setup-laptop.sh index 1d460cd..f9470a8 100644 --- a/setup-laptop.sh +++ b/setup-laptop.sh @@ -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 diff --git a/setup.sh b/setup.sh index 88d69ac..142ebca 100755 --- a/setup.sh +++ b/setup.sh @@ -26,5 +26,9 @@ elif [ -d /usr/lib/coreos ]; then sh setup-infra.sh fi elif [ -d /ostree ]; then - sh setup-laptop.sh + if [ "$1" = laptop ]; then + sh setup-laptop.sh + elif [ "$1" = gpu ]; then + sh setup-gpu.sh + fi fi