nixos-dotfiles/home/betterdiscord-plugins.nix

33 lines
883 B
Nix

{ pkgs, ... }:
{
home = let
pluginRepoPlugin = pkgs.fetchurl {
url = "https://betterdiscord.app/Download?id=200";
hash = "sha256-gOo7q/N8B2SEXrVfAgQ4EUewv69bZ4guc8BR1X0xOZY=";
};
fetchPlugin = { id, hash }:
pkgs.fetchurl {
url = "https://betterdiscord.app/Download?id=" + id;
inherit hash;
};
in {
# file.".local/share/nemo/actions/vscode.nemo_action".source = ../vscode.nemo_action;
file.".config/BetterDiscord/plugins/PluginRepo.plugin.js".source = fetchPlugin {
id = "200";
hash = "sha256-gOo7q/N8B2SEXrVfAgQ4EUewv69bZ4guc8BR1X0xOZY=";
};
# activation = {
# downloadBetterDiscordPlugins = {
# after = [ "writeBoundary" ];
# before = [ ];
# data = ''
# ${pkgs.curl}/bin/curl "https://betterdiscord.app/Download?id=200" -o
# '';
# };
# };
};
}