feat(discord): refactor & arrpc
This commit is contained in:
parent
bf97a55b92
commit
48ab0ba163
2 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue