Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support equicord #66

Open
CodedNil opened this issue Jan 14, 2025 · 4 comments
Open

Support equicord #66

CodedNil opened this issue Jan 14, 2025 · 4 comments

Comments

@CodedNil
Copy link

Love the program, was doing this manually with settings.json files and it was a nightmare.

Is there any chance in the future it could support equicord? Basically just vencord with extra plugins, even if only to add the extra plugins from their repo.
I managed to get most of the ones I wanted with userPlugins but a few errored and I didn't feel like forking the plugins to make it work.

https://github.com/Equicord/Equicord

@KaylorBen
Copy link
Owner

This should be possible, although just through filling in the extra config fields. I think making nix options for all of their new plugins should be on a different branch maybe if someone wants to try to do that, but it would be a pretty immense amount of work.

@tohmais
Copy link

tohmais commented Feb 18, 2025

I managed to get most of the ones I wanted with userPlugins but a few errored and I didn't feel like forking the plugins to make it work.

How? I've tried using subdirectories on the Equicord repo and Nix complains at me:

userPlugins = {
  anammox = "github:Equicord/Equicord/bfb97040b9e939d705778461c1857ccb36883d72?dir=src/equicordplugins/anammox";
};
error: A definition for option `home-manager.users.tohmais.programs.nixcord.userPlugins.anammox' is not of type `(path in the Nix store or package convertible to it) or string matching the pattern github:([[:alnum:].-]+)/([[:alnum:]/-]+)/([0-9a-f]{40}) convertible to it'. Definition values:
       - In `/nix/store/f84i2nqc39yw5lrpih07lj6yi6axwm8n-source/modules/home-manager': "github:Equicord/Equicord/bfb97040b9e939d705778461c1857ccb36883d72?dir=src/equicordplugins/anammox"

I know why the above is erroring, but I was just wondering how you bypassed it.

@CodedNil
Copy link
Author

CodedNil commented Feb 18, 2025

This was my solution, it fetches the repo as a variable first

  programs.nixcord =
    let
      equicordRepo = builtins.fetchGit {
        url = "https://github.com/Equicord/Equicord.git";
        rev = "8ce8d10fb41b19fb3986e978dc20fdf0697c14f1";
      };
    in
    {
      enable = true;
      userPlugins = {
        betterQuickReact = "${equicordRepo}/src/equicordplugins/betterQuickReact";
        homeTyping = "${equicordRepo}/src/equicordplugins/homeTyping";

@tohmais
Copy link

tohmais commented Feb 19, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants