feat(desktop): add nixcord module
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-01-16 10:45:14 -05:00
parent de5e8c58d2
commit 22d186472e
4 changed files with 85 additions and 16 deletions

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -145,6 +145,14 @@ let
owner = "eriedaberrie";
repo = "grim-hyprland";
};
nixcord = mkDep {
owner = "kaylorben";
repo = "nixcord";
# FIXME: https://github.com/KaylorBen/nixcord/pull/69
rev = "02247bedd6988a1169c4499406970b92bfd8aa02";
};
};
agsInputs = {

View file

@ -5,7 +5,7 @@ self: {
...
}: let
inherit (self.lib.hypr) mkBind;
inherit (self.inputs) jellyfin-flake;
inherit (self.inputs) jellyfin-flake nixcord;
inherit (lib) attrValues getExe mkIf optionals;
inherit (pkgs.writers) writeTOML;
@ -43,6 +43,8 @@ in {
(import ../home/mpv.nix self)
(import ../home/obs.nix self)
nixcord.homeManagerModules.nixcord
({config, ...}: let
inherit (config.lib.file) mkOutOfStoreSymlink;
configDir = "${flakeDir}/modules/desktop/environment/config";
@ -66,14 +68,80 @@ in {
})
];
programs.sioyek = {
enable = true;
programs = {
nixcord = {
enable = true;
config = {
startup_commands = "toggle_custom_color";
ui_font = "JetBrainsMono Nerd Font Mono Regular";
font_size = "24";
source = toString self.scopedPackages.${pkgs.system}.dracula.sioyek;
discord = {
vencord.unstable = true;
settings = {
skipHostUpdate = true;
dangerousEnableDevtoolsOnlyEnableIfYouKnowWhatYoureDoing = true;
minWidth = 940;
minHeight = 500;
isMaximized = true;
isMinimized = false;
enableHardwareAcceleration = !isNvidia;
};
};
config = {
notifyAboutUpdates = false;
autoUpdate = false;
autoUpdateNotification = false;
themeLinks = [
"https://markchan0225.github.io/RoundedDiscord/RoundedDiscord.theme.css"
"https://raw.githubusercontent.com/dracula/BetterDiscord/master/Dracula_Official.theme.css"
];
plugins = {
alwaysTrust.enable = true;
biggerStreamPreview.enable = true;
clearURLs.enable = true;
crashHandler.enable = true;
disableCallIdle.enable = true;
emoteCloner.enable = true;
imageZoom.enable = true;
memberCount.enable = true;
messageLinkEmbeds.enable = true;
messageLogger = {
enable = true;
ignoreBots = true;
ignoreSelf = true;
};
mutualGroupDMs.enable = true;
onePingPerDM.enable = true;
openInApp.enable = true;
platformIndicators.enable = true;
previewMessage.enable = true;
readAllNotificationsButton.enable = true;
reverseImageSearch.enable = true;
spotifyCrack.enable = true;
themeAttributes.enable = true;
typingIndicator.enable = true;
typingTweaks.enable = true;
viewIcons.enable = true;
viewRaw.enable = true;
voiceChatDoubleClick.enable = true;
volumeBooster.enable = true;
whoReacted.enable = true;
};
};
};
sioyek = {
enable = true;
config = {
startup_commands = "toggle_custom_color";
ui_font = "JetBrainsMono Nerd Font Mono Regular";
font_size = "24";
source = toString self.scopedPackages.${pkgs.system}.dracula.sioyek;
};
};
};
@ -96,6 +164,7 @@ in {
swayimg
nextcloud-client
prismlauncher
vesktop # screen-sharing on desktop
;
# tools
@ -116,14 +185,6 @@ in {
.jellyfin-media-player
.override {isNvidiaWayland = isNvidia;};
/*
Discord themes for Vencord
https://markchan0225.github.io/RoundedDiscord/RoundedDiscord.theme.css
https://raw.githubusercontent.com/dracula/BetterDiscord/master/Dracula_Official.theme.css
*/
discord = pkgs.discord.override {withVencord = true;};
inherit (pkgs) vesktop;
GParted = let
inherit (pkgs) writeShellScriptBin libsForQt5 gparted makeWrapper symlinkJoin;