Skip to content

Commit

Permalink
feat(discord): refactor & arrpc
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed May 2, 2024
1 parent bf97a55 commit 48ab0ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions home/apps/discord.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ in {
++ (lib.optionals isLinux [
(pkgs.vesktop.override {withSystemVencord = false;})
]);

home.activation.discordSettings = let
json = pkgs.writeTextFile {
name = "discord-settings.json";
Expand Down Expand Up @@ -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;
};
}
4 changes: 1 addition & 3 deletions home/apps/media.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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; [
Expand All @@ -23,7 +22,6 @@ in {
mopidy-podcast
];
};
services.mpd-discord-rpc.enable = isLinux;

xdg.mimeApps.defaultApplications = {
"application/pdf" = "zathura.desktop";
Expand Down

0 comments on commit 48ab0ba

Please sign in to comment.