diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index ed57eaf3..e1c91fa0 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -32,6 +32,8 @@ chat = { whatsapp.enable = true; zoom.enable = true; + discord.enable = true; + teams.enable = true; }; apps = { nemo.enable = true; diff --git a/modules/desktop/chat/default.nix b/modules/desktop/chat/default.nix index 83930fc4..cbc4eacf 100644 --- a/modules/desktop/chat/default.nix +++ b/modules/desktop/chat/default.nix @@ -3,5 +3,6 @@ ./teams ./whatsapp ./zoom + ./discord ]; } diff --git a/modules/desktop/chat/discord/default.nix b/modules/desktop/chat/discord/default.nix new file mode 100644 index 00000000..8f474ebd --- /dev/null +++ b/modules/desktop/chat/discord/default.nix @@ -0,0 +1,21 @@ +{ + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.desktop.chat.discord; +in { + options.modules.desktop.chat.discord = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + discord + ]; + }; +} diff --git a/modules/desktop/chat/discord/default.nix~ b/modules/desktop/chat/discord/default.nix~ new file mode 100644 index 00000000..e69de29b