From 51f71a759dad289c23ecf5c883e647929b1dba78 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 3 Jun 2024 09:30:52 +0100 Subject: [PATCH] Move teams and nomachine install to work.nix Add teams-for-linux config file: set theme and spellchecker language, notification settings, idle options and force wayland if sway is enabled --- home/default.nix | 2 -- home/work.nix | 15 +++++++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/home/default.nix b/home/default.nix index 3e36769..53cd905 100644 --- a/home/default.nix +++ b/home/default.nix @@ -108,8 +108,6 @@ webcord signal-desktop whatsapp-for-linux - teams-for-linux - nomachine-client ]; stateVersion = "23.05"; }; diff --git a/home/work.nix b/home/work.nix index 74900ef..f4d3fa4 100644 --- a/home/work.nix +++ b/home/work.nix @@ -5,8 +5,10 @@ ... }: { imports = [./default.nix]; - home.packages = [ - (pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}") + home.packages = with pkgs; [ + teams-for-linux + nomachine-client + (writeShellScriptBin "ukaea-vpn-connect" "sudo ${openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}") ]; programs = { git.userEmail = config.accounts.email.accounts.outlook.address; @@ -16,4 +18,13 @@ proton.primary = lib.mkForce false; outlook.primary = lib.mkForce true; }; + xdg.configFile."teams-for-linux/config.json".text = builtins.toJSON { + awayOnSystemIdle = true; + closeAppOnCross = true; + electronCLIFlags = lib.mkIf config.wayland.windowManager.sway.enable [["ozone-platform" "wayland"]]; + followSystemTheme = true; + notificationMethod = "electron"; + optInTeamsV2 = true; + spellCheckerLanguages = ["en_GB"]; + }; }