Skip to content

Commit

Permalink
fix(installer): Fix nvidia detection causing jq error
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTNE committed Dec 4, 2023
1 parent 368e07b commit 6b243a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/subsystem/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ The script will first install Nix, the package manager, and proceed by setting u

## Updating

The system may be updated by running `sudo garuda-nix-subsystem update` from either Garuda or Garuda Nix Subsystem. This sources the latest tagged commit from our [Garuda Nix Subsystem repo](https://gitlab.com/garuda-linux/garuda-nix-subsystem), which also updates the flake's inputs and therefore all package versions.
The system may be updated by running `sudo garuda-nix-subsystem update` from either Garuda or by running `garuda-update` on Garuda Nix Subsystem. This sources the latest tagged commit from our [Garuda Nix Subsystem repo](https://gitlab.com/garuda-linux/garuda-nix-subsystem), which also updates the flake's inputs and therefore all package versions.
4 changes: 2 additions & 2 deletions packages/gns-management/gns-update.bash
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function configureGNS {

packages="$(pacman -Qq garuda-nvidia-config garuda-nvidia-prime-config 2> /dev/null | xargs || true)"
if [[ "$packages" =~ (^| )garuda-nvidia-prime-config($| ) ]]; then
config="$(jq '.v2.host.hardware.nvidia=prime' <<<"$config")"
config="$(jq '.v2.host.hardware.nvidia="prime"' <<<"$config")"
elif [[ "$packages" =~ (^| )garuda-nvidia-config($| ) ]]; then
config="$(jq '.v2.host.hardware.nvidia=nvidia' <<<"$config")"
config="$(jq '.v2.host.hardware.nvidia="nvidia"' <<<"$config")"
fi
fi

Expand Down

0 comments on commit 6b243a8

Please sign in to comment.