Move strawberry sway hacks to its home.nix

This commit is contained in:
Riley Apeldoorn 2023-06-17 12:59:29 +02:00
parent 571e1daa82
commit 3cef5b6f97
2 changed files with 10 additions and 6 deletions

View File

@ -53,12 +53,6 @@ in with lib; {
# This is all required to get it to not die.
enable = true;
wrapperFeatures.gtk = true;
extraSessionCommands = ''
#export WLR_NO_HARDWARE_CURSORS=1;
#export WLR_RENDERER=vulkan;
#export WLR_EGL_NO_MODIFIERS=1;
'';
#extraOptions = [ "--unsupported-gpu" ];
systemdIntegration = true;
extraConfig = ''

View File

@ -7,4 +7,14 @@
network.eth = "enp9s0";
};
};
# Due to Hardware :tm: this is needed to get sway to not crash
wayland.windowManager.sway = {
extraSessionCommands = ''
export WLR_NO_HARDWARE_CURSORS=1;
export WLR_RENDERER=vulkan;
export WLR_EGL_NO_MODIFIERS=1;
'';
extraOptions = [ "--unsupported-gpu" ];
};
}