This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/home/work.nix
Evie Litherland-Smith 51f71a759d 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
2024-06-03 09:30:52 +01:00

31 lines
892 B
Nix

{
config,
lib,
pkgs,
...
}: {
imports = [./default.nix];
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;
firefox.policies.Homepage.URL = "https://nucleus.ukaea.uk";
};
accounts.email.accounts = {
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"];
};
}