From 7c55c0963d04cd1b58269db3249729d97e17131e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Tue, 2 Aug 2022 21:17:03 -0300 Subject: [PATCH] switch to webcord --- user/home.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/user/home.nix b/user/home.nix index 233e978..358a897 100644 --- a/user/home.nix +++ b/user/home.nix @@ -601,6 +601,7 @@ in { { class = "Jitsi Meet"; } { class = "discord"; } { title = "Discord"; } + { class = "WebCord"; } ]; }; modes = let return_mode = lib.mapAttrs (k: v: "${v}; mode default"); @@ -838,6 +839,12 @@ in { # # vim: ft=ini + }; + 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 + $DRY_RUN_CMD flatpak $VERBOSE_ARG install -y flathub io.github.spacingbat3.webcord + ''; }; services.kdeconnect = { enable = true; @@ -881,7 +888,7 @@ in { After = [ "graphical-session.target" ]; }; Service = { - ExecStart = "${pkgs.discord}/bin/discord"; + ExecStart = "${pkgs.firefox}/bin/firefox"; Restart = "on-failure"; }; Install = { WantedBy = [ "sway-session.target" ]; }; @@ -893,7 +900,7 @@ in { After = [ "graphical-session.target" ]; }; Service = { - ExecStart = "${pkgs.discord}/bin/discord"; + ExecStart = "/usr/bin/env flatpak run io.github.spacingbat3.webcord"; Restart = "on-failure"; }; Install = { WantedBy = [ "sway-session.target" ]; };