nixos-config/user/chat.nix

44 lines
1.4 KiB
Nix
Raw Normal View History

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" "pipewire-pulse.service" "tray.service" "telegram.service" ];
2022-10-24 20:16:41 -03:00
};
Service = {
ExecStartPre = "/usr/bin/env sleep 1s";
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" ];
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" ];
2022-10-24 20:16:41 -03:00
};
Service = {
ExecStart = "${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
}