autostart firefox

This commit is contained in:
Leonardo Eugênio 2022-12-21 21:01:16 -03:00
parent 1af3503c5d
commit 31c01e92aa

View file

@ -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"; };
};
}