nvidia wayland sucks

This commit is contained in:
Peder Bergebakken Sundt 2023-06-29 03:05:46 +02:00
parent f38f05c4e7
commit 639bce933f
2 changed files with 9 additions and 3 deletions

View File

@ -121,14 +121,20 @@
# nvidia bad
nixpkgs.config.packageOverrides = (pkgs: {
discord = pkgs.discord.overrideAttrs (old: rec {
desktopItem = old.desktopItem.override (old': {
#exec = "${pkgs.coreutils}/bin/env NIXOS_OZONE_WL=1 ${old'.exec}";
desktopItem = old.desktopItem.override (old: {
#exec = "${pkgs.coreutils}/bin/env NIXOS_OZONE_WL=1 ${old.exec}";
exec = "${pkgs.coreutils-full}/bin/env NIXOS_OZONE_WL=1 Discord";
});
postInstall = ''
ln -sf "${desktopItem}/share/applications" $out/share/
'' + old.postInstall;
});
slack = pkgs.slack.overrideAttrs (old: {
postInstall = old.postInstall or "" + ''
substituteInPlace $out/share/applications/slack.desktop \
--replace "$out/bin/slack " "$out/bin/slack --disable-gpu --in-process-gpu "
'';
});
element-desktop = pkgs.element-desktop.overrideAttrs (old: {
desktopItem = old.desktopItem.override (old: {
exec = "element-desktop --disable-gpu --in-process-gpu %u";

View File

@ -16,7 +16,7 @@
services.xserver.xkbVariant = "";
# no caps lock
services.xserver.xkbOptions = "ctrl:nocaps";
services.xserver.xkbOptions = "ctrl:nocaps"; # TODO: doesn't work
#console.useXkbConfig = true; # applies to ttys aswell, mutex with console.keyMap
# run the following to make GNOME reload the xkb options:
/*