autostart firefox
This commit is contained in:
parent
1af3503c5d
commit
31c01e92aa
|
@ -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"; };
|
home.sessionVariables = { MOZ_ENABLE_WAYLAND = "1"; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue