diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 9ba82946..fb87cbe4 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -27,6 +27,9 @@ firefox.enable = true; qutebrowser.enable = false; }; + chat = { + teams.enable = true; + }; apps = { nemo.enable = true; pass.enable = true; diff --git a/modules/desktop/chat/default.nix b/modules/desktop/chat/default.nix index f7e9be4a..91d24245 100644 --- a/modules/desktop/chat/default.nix +++ b/modules/desktop/chat/default.nix @@ -1,4 +1,5 @@ { imports = [ + ./teams ]; } diff --git a/modules/desktop/chat/teams/default.nix b/modules/desktop/chat/teams/default.nix new file mode 100644 index 00000000..9bda885c --- /dev/null +++ b/modules/desktop/chat/teams/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.chat.teams; +in +{ + options.modules.desktop.chat.teams = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + teams-for-linux + ]; + }; +}