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
This commit is contained in:
Evie Litherland-Smith 2024-06-03 09:30:52 +01:00
parent 41ae216b81
commit 51f71a759d
2 changed files with 13 additions and 4 deletions

View file

@ -108,8 +108,6 @@
webcord webcord
signal-desktop signal-desktop
whatsapp-for-linux whatsapp-for-linux
teams-for-linux
nomachine-client
]; ];
stateVersion = "23.05"; stateVersion = "23.05";
}; };

View file

@ -5,8 +5,10 @@
... ...
}: { }: {
imports = [./default.nix]; imports = [./default.nix];
home.packages = [ home.packages = with pkgs; [
(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}") teams-for-linux
nomachine-client
(writeShellScriptBin "ukaea-vpn-connect" "sudo ${openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")
]; ];
programs = { programs = {
git.userEmail = config.accounts.email.accounts.outlook.address; git.userEmail = config.accounts.email.accounts.outlook.address;
@ -16,4 +18,13 @@
proton.primary = lib.mkForce false; proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true; 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"];
};
} }