Skip to content

Commit

Permalink
fix: update fwupdmgr output code (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Dec 10, 2023
1 parent 0b8bf61 commit dc56cfb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 7 additions & 4 deletions files/usr/share/eternal/main.just
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
[private]
default:
@just --unstable --list

bios:
systemctl reboot --firmware-setup

[private]
update-flatpak:
flatpak update -y

[private]
update-system:
rpm-ostree update

[no-exit-message]
[private]
update-firmware:
fwupdmgr refresh --force
fwupdmgr get-updates
fwupdmgr update
fwupdmgr refresh --force
fwupdmgr get-updates || true
fwupdmgr update

update:
@just --unstable update-flatpak
Expand Down
10 changes: 9 additions & 1 deletion files/usr/share/eternal/nvidia.just
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ nvidia-setup:
@just --unstable nvidia-disable-nouveau
@just --unstable nvidia-secure-boot-enable
@just --unstable nvidia-firefox-vaapi
@just --unstable nvidia-generate-cdi
@echo "Configuring NVIDIA drivers... done"

[private]
nvidia-disable-nouveau:
rpm-ostree kargs \
--append-if-missing=rd.driver.blacklist=nouveau \
--append-if-missing=modprobe.blacklist=nouveau \
--append-if-missing=nvidia-drm.modeset=1

[private]
nvidia-secure-boot-enable:
sudo mokutil --import /etc/pki/akmods/certs/eternal-akmods.der

test-cuda:
nvidia-test-cuda:
podman run \
--user 1000:1000 \
--security-opt=no-new-privileges \
Expand All @@ -23,6 +26,7 @@ test-cuda:
--device=nvidia.com/gpu=all \
docker.io/nvidia/samples:vectoradd-cuda11.2.1

[private]
nvidia-firefox-vaapi:
flatpak override \
--user \
Expand All @@ -34,3 +38,7 @@ nvidia-firefox-vaapi:
--env=NVD_BACKEND=direct \
--env=MOZ_ENABLE_WAYLAND=1 \
org.mozilla.firefox

[private]
nvidia-generate-cdi:
sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml

0 comments on commit dc56cfb

Please sign in to comment.