feat(discord): refactor & arrpc

This commit is contained in:
winston 2024-05-02 21:17:23 +02:00
parent bf97a55b92
commit 48ab0ba163
Signed by: winston
GPG key ID: 3786770EDBC2B481
2 changed files with 7 additions and 3 deletions

View file

@ -14,6 +14,7 @@ in {
++ (lib.optionals isLinux [
(pkgs.vesktop.override {withSystemVencord = false;})
]);
home.activation.discordSettings = let
json = pkgs.writeTextFile {
name = "discord-settings.json";
@ -41,5 +42,10 @@ in {
mkdir -p "$(dirname "${path}")"
cp -f "${json}" "${path}"
'';
services.arrpc.enable = isLinux;
services.discord-applemusic-rich-presence.enable = isDarwin;
services.mpd-discord-rpc.enable = isLinux;
};
}

View file

@ -4,7 +4,7 @@
pkgs,
...
}: let
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
inherit (pkgs.stdenv.hostPlatform) isLinux;
in {
config = lib.mkIf config.isGraphical {
programs.imv.enable = isLinux;
@ -13,7 +13,6 @@ in {
home.packages = lib.mkIf isLinux [(pkgs.callPackage ../../pkgs/apple-music.nix {})];
services.discord-applemusic-rich-presence.enable = isDarwin;
services.mopidy = lib.mkIf isLinux {
enable = true;
extensionPackages = with pkgs; [
@ -23,7 +22,6 @@ in {
mopidy-podcast
];
};
services.mpd-discord-rpc.enable = isLinux;
xdg.mimeApps.defaultApplications = {
"application/pdf" = "zathura.desktop";