From bfbd8c11e319fd0f97e78e91758707fe873479b1 Mon Sep 17 00:00:00 2001 From: ooks-io Date: Mon, 22 Jan 2024 13:58:55 +1300 Subject: [PATCH] add: discord --- home/profile/hyprland/default.nix | 3 +++ home/programs/desktop/communication/default.nix | 13 +++++++++++++ .../desktop/communication/discord/default.nix | 11 +++++++++++ home/programs/desktop/default.nix | 2 +- 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 home/programs/desktop/communication/discord/default.nix diff --git a/home/profile/hyprland/default.nix b/home/profile/hyprland/default.nix index 3ba19a0..802a6e7 100644 --- a/home/profile/hyprland/default.nix +++ b/home/profile/hyprland/default.nix @@ -17,6 +17,9 @@ in notification.mako.enable = true; bar.eww.enable = true; }; + communication = { + discord.enable = true; + }; browser.firefox = { enable = true; default = true; diff --git a/home/programs/desktop/communication/default.nix b/home/programs/desktop/communication/default.nix index e69de29..6ed5be7 100644 --- a/home/programs/desktop/communication/default.nix +++ b/home/programs/desktop/communication/default.nix @@ -0,0 +1,13 @@ +{ lib, ... }: + +{ + imports = [ + ./discord + ]; + + options.programs.desktop.communication = { + discord = { + enable = lib.mkEnableOption "Enable discord module"; + }; + }; +} diff --git a/home/programs/desktop/communication/discord/default.nix b/home/programs/desktop/communication/discord/default.nix new file mode 100644 index 0000000..f68c6a0 --- /dev/null +++ b/home/programs/desktop/communication/discord/default.nix @@ -0,0 +1,11 @@ +{ lib, config, pkgs, ... }: + +let + cfg = config.programs.desktop.communication.discord; +in + +{ + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ vesktop ]; + }; +} diff --git a/home/programs/desktop/default.nix b/home/programs/desktop/default.nix index 2ce8107..f205c37 100644 --- a/home/programs/desktop/default.nix +++ b/home/programs/desktop/default.nix @@ -3,7 +3,7 @@ ./themeSettings # done ./browser # done -- firefox still need: chrome, brave #./creative -- still needs to be implemented - #./communication -- still needs to be implemented + ./communication # only discord implemented #./desktopEnvironment -- still needs to be implemented ./media # done -- spotify gui still needs to be implemented ./terminal # done -- wezterm still needs to be implemented