{ config, lib, inputs, ... }: let cfg = config.features.gui.apps.discord; in { imports = [ inputs.nixcord.homeModules.nixcord ]; options.features.gui.apps.discord.enable = lib.mkEnableOption "discord"; config = lib.mkIf cfg.enable { programs.nixcord = { enable = true; discord.enable = false; # Don't also install regular discord (enabled by default fsr) equibop = { enable = true; settings = { minimizeToTray = false; # Fully close discord when the window is closed. BROKEN }; }; quickCss = '' @import url(https://refact0r.github.io/system24/build/system24.css) ''; config = { useQuickCss = true; disableMinSize = true; # make the window any size. BROKEN plugins = { homeTyping.enable = true; # Typing icon replaces home icon when someone is typing in dms findReply.enable = true; # Adds a button to find the earliest reply in a chain. youtubeAdblock.enable = true; # Block ads in youtube embeds ClearURLs.enable = true; # Remove trackers from URLs like amazon OnePingPerDM.enable = true; # Only hear one ping from multiple dms. declutter = { enable = true; # Removes discord UI clutter (quests, shop, etc) removeQuestsAboveDM = true; removeShopAboveDM = true; }; }; }; }; }; }