nixos-config/user/chat.nix

31 lines
863 B
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 = {
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" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
};
2022-12-06 20:19:12 -03:00
home.packages = with pkgs; [ tdesktop webcord ];
2022-10-24 20:16:41 -03:00
}