Files
sydnix/modules/home/discord.nix
Madeleine Sydney Ślaga 550da5a27c
Some checks failed
build / build-sydpc (push) Successful in 42s
build / build-fruitbook (push) Failing after 3s
build / build-deertopia (push) Failing after 41s
feat(discord): jellyfin-rpc
2026-03-06 15:28:57 -07:00

49 lines
1.1 KiB
Nix

{ config, lib, pkgs, ... }:
let cfg = config.sydnix.discord;
in {
options.sydnix.discord = {
enable = lib.mkEnableOption "Discord";
fixWayland = lib.mkOption {
description = ''
Fix flickering on Wayland.
'';
type = lib.types.bool;
default = false;
};
};
imports = [
./discord/jellyfin-rpc.nix
];
config = lib.mkIf cfg.enable {
sydnix.impermanence.directories =
let xdg-config-home =
config.home.confighome
or "${config.home.homeDirectory}/.config";
in [
# This directory should really be written in terms of
# `config.programs.nixcord.vesktopConfigDir`, but it
# defaults to null for unknown reasons. This is in conflict
# with the docs, which claim it should be the path used
# here.
(lib.removePrefix
config.home.homeDirectory
"${xdg-config-home}/vesktop")
];
programs.nixcord = {
enable = true;
discord = {
enable = false;
vencord.enable = false;
vencord.package = pkgs.vencord;
};
vesktop = {
enable = true;
};
};
};
}