From 8e58ca31151b4e343ae53ec747b99ab81042db7a Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 8 Oct 2023 14:32:12 +0400 Subject: [PATCH] add discord --- hosts/sakotop/configuration.nix | 2 ++ modules/desktop/chat/default.nix | 1 + modules/desktop/chat/discord/default.nix | 21 +++++++++++++++++++++ modules/desktop/chat/discord/default.nix~ | 0 4 files changed, 24 insertions(+) create mode 100644 modules/desktop/chat/discord/default.nix create mode 100644 modules/desktop/chat/discord/default.nix~ 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