Firefox settings from home-manager not applying

Hi,
I’m using home-manager to manage my Firefox config. When I login Firefox is automatically started up by sway. Now the Firefox settings from home-manager are not applied until I do a full restart of Firefox. I suspect that this is a problem with this config:

wayland.windowManager.sway = {
    startup = [
            {
              command = "${pkgs.sway}/bin/swaymsg 'workspace 6; exec ${pkgs.firefox}/bin/firefox'";
              always = false;
            }
    ]
};

Based on this other discussion I’m guessing that the wrong Firefox is being used. However I could not find out how to properly start up Firefox through sway and the repository mentioned in the discussion does not exist anymore. Can anyone help?

Having a quick peek at the upstream module, I think this would work?

wayland.windowManager.sway = {
    startup = [
            {
              command = "${config.wayland.windowManager.sway.package}/bin/swaymsg 'workspace 6; exec ${config.programs.firefox.finalPackage}/bin/firefox'";
              always = false;
            }
    ]
};
2 Likes

Ahh that was easier than I expected… Awesome thank you!