setup astroid for autostart
This commit is contained in:
parent
15bbc5a000
commit
4a53c981ae
|
@ -1,6 +1,19 @@
|
||||||
{ config, pkgs, lib, inputs, ... }: {
|
{ config, pkgs, lib, inputs, ... }: {
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
thunderbird = {
|
astroid = lib.mkIf (pkgs.uservars.email-client == "astroid") {
|
||||||
|
Unit = {
|
||||||
|
Description = "Astroid Email client";
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
After = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStartPre = "/usr/bin/env sleep 10s";
|
||||||
|
ExecStart = "${pkgs.astroid}/bin/astroid";
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
|
Install = { WantedBy = [ "sway-session.target" ]; };
|
||||||
|
};
|
||||||
|
thunderbird = lib.mkIf (pkgs.uservars.email-client == "thunderbird") {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Thunderbird Email client";
|
Description = "Thunderbird Email client";
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
|
|
@ -132,4 +132,5 @@ rec {
|
||||||
desktop = "sway";
|
desktop = "sway";
|
||||||
browser = "qutebrowser";
|
browser = "qutebrowser";
|
||||||
editor = "kakoune";
|
editor = "kakoune";
|
||||||
|
email-client = "astroid";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue