dot
vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
a778c80
2 files changed +18 −2
modifiedmodules/nixos/apps.nix
@@ -39,6 +39,17 @@ | ||
| 39 | 39 | # Lets your user open the Stream Deck (40-streamdeck.rules on CachyOS). |
| 40 | 40 | services.udev.packages = [ pkgs.opendeck ]; |
| 41 | 41 | |
| 42 | + # Plugins installed from OpenDeck's store (Starter Pack, Discord) are prebuilt | |
| 43 | + # generic-Linux binaries; nix-ld gives them a /lib64 loader and their libraries. | |
| 44 | + programs.nix-ld = { | |
| 45 | + enable = true; | |
| 46 | + libraries = with pkgs; [ | |
| 47 | + stdenv.cc.cc.lib # libgcc_s | |
| 48 | + libxkbcommon | |
| 49 | + openssl | |
| 50 | + ]; | |
| 51 | + }; | |
| 52 | + | |
| 42 | 53 | # --- Flatpak -------------------------------------------------------------------- |
| 43 | 54 | |
| 44 | 55 | # Flatpak with Flathub, for apps that are only published there. Nothing is |
modifiedpkgs/opendeck/default.nix
@@ -13,6 +13,7 @@ | ||
| 13 | 13 | libayatana-appindicator, |
| 14 | 14 | libsoup_3, |
| 15 | 15 | glib-networking, |
| 16 | + nodejs, | |
| 16 | 17 | }: |
| 17 | 18 | |
| 18 | 19 | stdenv.mkDerivation (finalAttrs: { |
@@ -47,9 +48,13 @@ | ||
| 47 | 48 | runHook postInstall |
| 48 | 49 | ''; |
| 49 | 50 | |
| 50 | - # The tray icon library is opened with dlopen. | |
| 51 | + # The tray icon library is opened with dlopen. Node.js plugins (Redline) are | |
| 52 | + # started with whatever `node` is on PATH. | |
| 51 | 53 | preFixup = '' |
| 52 | - gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ) | |
| 54 | + gappsWrapperArgs+=( | |
| 55 | + --prefix LD_LIBRARY_PATH : | |
| 56 | + --suffix PATH : | |
| 57 | + ) | |
| 53 | 58 | ''; |
| 54 | 59 | |
| 55 | 60 | meta = { |