From 2e68962295bad48d8c064d7ff149424aed66dce3 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 25 Jul 2024 07:40:16 +0100 Subject: [PATCH] Add autostarts for whatsapp (all), teams (work) and twinkle (work) --- home/desktop/default.nix | 19 +++++++++++-------- home/work.nix | 4 ++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/home/desktop/default.nix b/home/desktop/default.nix index 1e32c755..6fcbc3a2 100644 --- a/home/desktop/default.nix +++ b/home/desktop/default.nix @@ -51,14 +51,17 @@ XDG_PROJECTS_DIR = "${config.home.homeDirectory}/Projects"; }; }; - configFile."teams-for-linux/config.json".text = builtins.toJSON { - awayOnSystemIdle = true; - closeAppOnCross = true; - followSystemTheme = true; - electronCLIFlags = lib.mkIf config.wayland.windowManager.sway.enable [["ozone-platform" "wayland"]]; - notificationMethod = "electron"; - optInTeamsV2 = true; - spellCheckerLanguages = ["en_GB"]; + configFile = { + "autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop"; + "teams-for-linux/config.json".text = builtins.toJSON { + awayOnSystemIdle = true; + closeAppOnCross = true; + followSystemTheme = true; + electronCLIFlags = lib.mkIf config.wayland.windowManager.sway.enable [["ozone-platform" "wayland"]]; + notificationMethod = "electron"; + optInTeamsV2 = true; + spellCheckerLanguages = ["en_GB"]; + }; }; }; xresources.properties = with config.scheme.withHashtag; { diff --git a/home/work.nix b/home/work.nix index a107f575..8e4578af 100644 --- a/home/work.nix +++ b/home/work.nix @@ -14,4 +14,8 @@ proton.primary = lib.mkForce false; outlook.primary = lib.mkForce true; }; + xdg.configFile = { + "autostart/twinkle.desktop".source = "${pkgs.twinkle}/share/applications/twinkle.desktop"; + "autostart/teams-for-linux.desktop".source = "${pkgs.teams-for-linux}/share/applications/teams-for-linux.desktop"; + }; }