diff --git a/iso/airootfs/etc/systemd/system/envycontrol.sevice b/iso/airootfs/etc/systemd/system/envycontrol.sevice new file mode 100644 index 0000000..2ede0e2 --- /dev/null +++ b/iso/airootfs/etc/systemd/system/envycontrol.sevice @@ -0,0 +1,8 @@ +[Unit] +Description=Enable Nvidia mode for envycontrol + +[Service] +ExecStart=/bin/bash /etc/systemd/system/envycontrol.sh + +[Install] +WantedBy=multi-user.target diff --git a/iso/airootfs/etc/systemd/system/envycontrol.sh b/iso/airootfs/etc/systemd/system/envycontrol.sh new file mode 100644 index 0000000..dd3b9fd --- /dev/null +++ b/iso/airootfs/etc/systemd/system/envycontrol.sh @@ -0,0 +1,7 @@ +#!/bin/bash +if [[ -f "/etc/modprobe.d/nvidia.conf" ]]; then + systemctl disable envycontrol.service +else + envycontrol -s nvidia --dm sddm +fi +