extract chat
This commit is contained in:
parent
66c01724c5
commit
a7b446eec0
2 changed files with 45 additions and 33 deletions
43
user/chat.nix
Normal file
43
user/chat.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
let inherit (import ./variables.nix) key theme color accent font;
|
||||
in {
|
||||
|
||||
systemd.user.services = {
|
||||
discord = {
|
||||
Unit = {
|
||||
Description = "Discord Internet voice chat";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "/usr/bin/env flatpak run io.github.spacingbat3.webcord";
|
||||
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" ]; };
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
tdesktop
|
||||
];
|
||||
|
||||
home.activation = {
|
||||
install_flatpaks = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
$DRY_RUN_CMD flatpak $VERBOSE_ARG remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo || true
|
||||
$DRY_RUN_CMD flatpak $VERBOSE_ARG install -y flathub io.github.spacingbat3.webcord || true
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue