Enable sddm-greeter
This commit is contained in:
49
justfile
49
justfile
@@ -1,52 +1,3 @@
|
|||||||
# Configure the Nvidia driver
|
|
||||||
_configure-nvidia ACTION="prompt":
|
|
||||||
#!/usr/bin/bash
|
|
||||||
source /usr/lib/ujust/ujust.sh
|
|
||||||
OPTION={{ ACTION }}
|
|
||||||
if [ "$OPTION" == "prompt" ]; then
|
|
||||||
echo "${bold}Configuring Nvidia drivers${normal}"
|
|
||||||
echo 'What would you like to do?'
|
|
||||||
OPTION=$(ugum choose "Set needed kernel arguments" "Remove kernel arguments")
|
|
||||||
elif [ "$OPTION" == "help" ]; then
|
|
||||||
echo "Usage: ujust configure-nvidia <option>"
|
|
||||||
echo " <option>: Specify the quick option - 'kargs', 'test-cuda' or 'firefox-vaapi'"
|
|
||||||
echo " Use 'kargs' to Set needed kernel arguments"
|
|
||||||
echo " Use 'test-cuda' to Test CUDA support"
|
|
||||||
echo " Use 'firefox-vaapi' to Enable Nvidia VAAPI in Firefox Flatpak."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if [ "$OPTION" == "Set needed kernel arguments" ] || [ "${OPTION,,}" == "kargs" ]; then
|
|
||||||
rpm-ostree kargs \
|
|
||||||
--append-if-missing=rd.driver.blacklist=nouveau \
|
|
||||||
--append-if-missing=modprobe.blacklist=nouveau \
|
|
||||||
--append-if-missing=nvidia-drm.modeset=1 \
|
|
||||||
--delete-if-present=nomodeset
|
|
||||||
elif [ "$OPTION" == "Remove kernel arguments" ] || [ "${OPTION,,}" == "remove-kargs" ]; then
|
|
||||||
rpm-ostree kargs \
|
|
||||||
--delete-if-present=rd.driver.blacklist=nouveau \
|
|
||||||
--delete-if-present=modprobe.blacklist=nouveau \
|
|
||||||
--delete-if-present=nvidia-drm.modeset=1 \
|
|
||||||
--append-if-missing=nomodeset
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Switch between Nvidia image and NVK
|
|
||||||
toggle-nvk:
|
|
||||||
#!/usr/bin/bash
|
|
||||||
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"' | sed -E 's/^.+\/(.+:.+)$/\1/')
|
|
||||||
CURRENT_URI=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"' | sed -E 's/^(.+\/).+:.+$/\1/')
|
|
||||||
NEW_IMAGE=$CURRENT_IMAGE
|
|
||||||
CONFIG_ACTION=""
|
|
||||||
if [[ "$CURRENT_IMAGE" =~ "nvidia" ]]; then
|
|
||||||
NEW_IMAGE=${CURRENT_IMAGE/-nvidia/}
|
|
||||||
CONFIG_ACTION="kargs"
|
|
||||||
else
|
|
||||||
NEW_IMAGE=${CURRENT_IMAGE/:/-nvidia:}
|
|
||||||
CONFIG_ACTION="remove-kargs"
|
|
||||||
fi
|
|
||||||
echo "Rebasing to ${NEW_IMAGE}"
|
|
||||||
rpm-ostree rebase ${CURRENT_URI}${NEW_IMAGE}
|
|
||||||
just _configure-nvidia ${CONFIG_ACTION}
|
|
||||||
|
|
||||||
generate-secureboot-key:
|
generate-secureboot-key:
|
||||||
openssl req -config ./openssl.cnf \
|
openssl req -config ./openssl.cnf \
|
||||||
-new -x509 -newkey rsa:2048 \
|
-new -x509 -newkey rsa:2048 \
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ modules:
|
|||||||
- type: systemd
|
- type: systemd
|
||||||
system:
|
system:
|
||||||
enabled:
|
enabled:
|
||||||
- sddm
|
- sddm-greeter
|
||||||
disabled:
|
disabled:
|
||||||
- cosmic-greeter
|
- cosmic-greeter
|
||||||
- from-file: base/post-build.yml
|
- from-file: base/post-build.yml
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ modules:
|
|||||||
- type: systemd
|
- type: systemd
|
||||||
system:
|
system:
|
||||||
enabled:
|
enabled:
|
||||||
- sddm
|
- sddm-greeter
|
||||||
disabled:
|
disabled:
|
||||||
- cosmic-greeter
|
- cosmic-greeter
|
||||||
- from-file: base/post-build.yml
|
- from-file: base/post-build.yml
|
||||||
|
|||||||
@@ -31,4 +31,4 @@ modules:
|
|||||||
- type: systemd
|
- type: systemd
|
||||||
system:
|
system:
|
||||||
enabled:
|
enabled:
|
||||||
- sddm
|
- sddm-greeter
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ name: jp-desktop-nvidia
|
|||||||
|
|
||||||
# Custom Base
|
# Custom Base
|
||||||
base-image: registry.gitlab.com/wunker-bunker/wunker-os/combo-nvidia
|
base-image: registry.gitlab.com/wunker-bunker/wunker-os/combo-nvidia
|
||||||
|
# base-image: registry.gitlab.com/wunker-bunker/wunker-os/cosmic-nvidia
|
||||||
image-version: 42
|
image-version: 42
|
||||||
description: The image of Wunker OS for JP's desktop gaming.
|
description: The image of Wunker OS for JP's desktop gaming.
|
||||||
blue-build-tag: none
|
blue-build-tag: none
|
||||||
|
|||||||
Reference in New Issue
Block a user