2022-12-06 20:19:12 -03:00
|
|
|
{ config, pkgs, lib, inputs, ... }: {
|
2022-10-24 20:16:41 -03:00
|
|
|
systemd.user.services = {
|
2022-12-06 22:25:31 -03:00
|
|
|
thunderbird = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Thunderbird Email client";
|
|
|
|
PartOf = [ "graphical-session.target" ];
|
|
|
|
After = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${pkgs.thunderbird}/bin/thunderbird";
|
|
|
|
Restart = "on-failure";
|
|
|
|
};
|
|
|
|
Install = { WantedBy = [ "sway-session.target" ]; };
|
|
|
|
};
|
2022-10-24 20:16:41 -03:00
|
|
|
discord = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Discord Internet voice chat";
|
|
|
|
PartOf = [ "graphical-session.target" ];
|
|
|
|
After = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
Service = {
|
2022-12-06 20:19:12 -03:00
|
|
|
ExecStart = "${pkgs.webcord}/bin/webcord";
|
2022-10-24 20:16:41 -03:00
|
|
|
Restart = "on-failure";
|
|
|
|
};
|
|
|
|
Install = { WantedBy = [ "sway-session.target" ]; };
|
|
|
|
};
|
|
|
|
telegram = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Telegram Internet chat";
|
|
|
|
PartOf = [ "graphical-session.target" ];
|
2022-12-17 20:21:18 -03:00
|
|
|
After = [ "graphical-session.target" "pipewire-pulse.service" ];
|
2022-10-24 20:16:41 -03:00
|
|
|
};
|
|
|
|
Service = {
|
2022-12-17 20:21:18 -03:00
|
|
|
ExecStart = "${pkgs.sway}/bin/swaymsg exec -- ${pkgs.tdesktop}/bin/telegram-desktop";
|
2022-10-24 20:16:41 -03:00
|
|
|
Restart = "on-failure";
|
|
|
|
};
|
|
|
|
Install = { WantedBy = [ "sway-session.target" ]; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-12-06 22:25:31 -03:00
|
|
|
home.packages = with pkgs; [ tdesktop webcord thunderbird ];
|
2022-10-24 20:16:41 -03:00
|
|
|
}
|