From f5c7956a7ad5b274ff50b2b0eb3f0a8f01ac0974 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:13:12 +0400 Subject: [PATCH] we --- hosts/sakotop/configuration.nix | 3 +++ modules/desktop/chat/default.nix | 1 + modules/desktop/chat/teams/default.nix | 16 ++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 modules/desktop/chat/teams/default.nix 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 + ]; + }; +}