Fix env vars for DM change

This commit is contained in:
James Patrick 2022-03-24 00:01:19 -04:00
parent 94613c579e
commit d0bbf94623

View File

@ -13,10 +13,15 @@ in with lib; {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.james = { environment.sessionVariables = {
# Enable touch controls. MOZ_USE_XINPUT2 = "1";
home.sessionVariables = { MOZ_USE_XINPUT2 = 1; }; } // (if graphical.protocol == "Wayland" then {
MOZ_ENABLE_WAYLAND = "1";
} else
{ })
// (if sway_cfg.enable then { XDG_CURRENT_DESKTOP = "sway"; } else { });
home-manager.users.james = {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.firefox.override { package = pkgs.firefox.override {