teams: Wrap teams-for-linux to always follow system theme

This commit is contained in:
Charlotte Van Petegem 2024-01-31 09:59:06 +01:00
parent 1afe0b9a56
commit 25877924b2
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -1,5 +1,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
teamsWrapper = pkgs.writeShellScriptBin "teams-for-linux" ''
${pkgs.teams-for-linux}/bin/teams-for-linux --followSystemTheme
'';
in
{ {
options.chvp.work.teams.enable = lib.mkOption { options.chvp.work.teams.enable = lib.mkOption {
default = false; default = false;
@ -14,9 +19,7 @@
}; };
home-manager.users.charlotte = { pkgs, ... }: { home-manager.users.charlotte = { pkgs, ... }: {
home.packages = with pkgs; [ home.packages = with pkgs; [ teamsWrapper ];
teams-for-linux
];
}; };
}; };
} }