feat(desktop/garmin-express): add Garmin Express via Wine#1615
Open
fredclausen wants to merge 1 commit into
Open
feat(desktop/garmin-express): add Garmin Express via Wine#1615fredclausen wants to merge 1 commit into
fredclausen wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an optional NixOS desktop module to install and run Garmin Express (Windows) under Wine with a dedicated per-user Wine prefix, integrated into the existing desktop.enable_extra feature-gating.
Changes:
- Introduces
desktop.garmin-expressmodule with agarmin-expresswrapper that bootstraps a Wine prefix, installs prerequisites via winetricks, runs the pinned Garmin installer, and then launches Express with GPU disabled. - Adds a
.desktopentry and installs required MTP/Wine-related packages for configured users. - Wires the module into
features/desktop/default.nixand enables it whendesktop.enable_extrais set.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| features/desktop/garmin-express/default.nix | New module that pins the installer, provides the Wine/winetricks bootstrap wrapper, and configures udev + packages needed for Garmin Express/MTP. |
| features/desktop/default.nix | Imports the new module and enables it behind desktop.enable_extra. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+97
to
+99
| # Allow user-level access to Garmin USB devices (vendor 0x091e). | ||
| services.udev.extraRules = '' | ||
| SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666", GROUP="users" |
Adds a desktop.garmin-express module that wraps the Windows Garmin Express installer in a Wine prefix so Garmin device map/firmware updates work on NixOS. Enabled with desktop.enable_extra alongside other vendor apps. Wrapper handles first-run setup (wineboot, .NET 4.8 via winetricks, then the pinned Garmin installer) and launches express.exe with --disable-gpu to work around CefSharp.Wpf rendering as a black window under XWayland. Also disables winemenubuilder via WINEDLLOVERRIDES so Wine does not auto-export a duplicate .desktop entry into ~/.local/share/applications.
fd52809 to
5def8c6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
Garmin doesn't ship a Linux client. Native alternatives (manually copying `.img` files, Garmin Connect mobile) work for some cases but not for paid/preloaded TopoActive maps tied to Express. A reproducible Nix-managed Wine wrapper avoids the alternative of running a full Windows VM for one app.
How it works
The module:
Caveats
Test plan