diff --git a/user/firefox.nix b/user/firefox.nix index e5c5835..0ecf800 100644 --- a/user/firefox.nix +++ b/user/firefox.nix @@ -31,6 +31,21 @@ in { }; }; }; + systemd.user.services = { + firefox = { + Unit = { + Description = "Firefox Web client"; + PartOf = [ "graphical-session.target" ]; + After = [ "graphical-session.target" ]; + }; + Service = { + ExecStartPre = "/usr/bin/env sleep 10s"; + ExecStart = "${pkgs.firefox}/bin/firefox"; + Restart = "on-failure"; + }; + Install = { WantedBy = [ "sway-session.target" ]; }; + }; + }; home.sessionVariables = { MOZ_ENABLE_WAYLAND = "1"; }; }; }