tangled
alpha
login
or
join now
nel.pet
/
cyclamen
4
fork
atom
NixOS and Home Manager config
4
fork
atom
overview
issues
pulls
pipelines
chore(vscode): remove wayland fix. it is now done upstream
nel.pet
3 months ago
6e9f1a77
84f7025f
verified
This commit was signed with the committer's
known signature
.
nel.pet
SSH Key Fingerprint:
SHA256:Zd+mWw4EweOfjYKNMYyVtMSN7oj+SBabmubG4RThVEI=
-11
1 changed file
expand all
collapse all
unified
split
modules
home
vscode.nix
-11
modules/home/vscode.nix
···
6
6
programs.vscode = {
7
7
enable = true;
8
8
package = pkgs.vscode.overrideAttrs (final: prev: {
9
9
-
# Force vscode to run with the wayland backend to fix cursor theme issue.
10
10
-
# See https://github.com/NixOS/nixpkgs/issues/142764,
11
11
-
# https://www.reddit.com/r/NixOS/comments/17jeq1w/nix_packages_not_respecting_cursor_theme_nonnixos/ and
12
12
-
# https://discourse.nixos.org/t/please-help-fix-ugly-cursor-in-apps-installed-with-nix-env/11797
13
13
-
nativeBuildInputs = prev.nativeBuildInputs ++ [ pkgs.makeWrapper ];
14
14
-
postFixup = prev.postFixup + ''
15
15
-
mv $out/bin/code $out/bin/.code-wayland-wrapped
16
16
-
makeWrapper $out/bin/.code-wayland-wrapped $out/bin/code \
17
17
-
--add-flags "--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto --enable-wayland-ime"
18
18
-
'';
19
19
-
20
9
# Work around for https://github.com/NixOS/nixpkgs/issues/391341
21
10
desktopItems = lib.map
22
11
(i: if