NixOS and Home Manager config

chore(vscode): remove wayland fix. it is now done upstream

nel.pet 6e9f1a77 84f7025f

verified
Changed files
-11
modules
home
-11
modules/home/vscode.nix
···
programs.vscode = {
enable = true;
package = pkgs.vscode.overrideAttrs (final: prev: {
-
# Force vscode to run with the wayland backend to fix cursor theme issue.
-
# See https://github.com/NixOS/nixpkgs/issues/142764,
-
# https://www.reddit.com/r/NixOS/comments/17jeq1w/nix_packages_not_respecting_cursor_theme_nonnixos/ and
-
# https://discourse.nixos.org/t/please-help-fix-ugly-cursor-in-apps-installed-with-nix-env/11797
-
nativeBuildInputs = prev.nativeBuildInputs ++ [ pkgs.makeWrapper ];
-
postFixup = prev.postFixup + ''
-
mv $out/bin/code $out/bin/.code-wayland-wrapped
-
makeWrapper $out/bin/.code-wayland-wrapped $out/bin/code \
-
--add-flags "--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto --enable-wayland-ime"
-
'';
-
# Work around for https://github.com/NixOS/nixpkgs/issues/391341
desktopItems = lib.map
(i: if