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 {
home-manager.users.james = {
# Enable touch controls.
home.sessionVariables = { MOZ_USE_XINPUT2 = 1; };
environment.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 = {
enable = true;
package = pkgs.firefox.override {