KaylorBen / nixcord

Declarative Vencord plugins + options
MIT License
47 stars 4 forks source link

Cannot build when anything is added to vesktop.settings #24

Open joinemm opened 2 hours ago

joinemm commented 2 hours ago

Trying to configure settings.json like this:

programs.nixcord.vesktop.settings = {
  hardwareAcceleration = true;
  # or anything else
};

Results in:

error:
       … while calling the 'head' builtin

         at /nix/store/fpivx4sjcp2vk4rp9nhliln5cwcp3kc6-source/lib/attrsets.nix:1575:11:

         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'

         at /nix/store/fpivx4sjcp2vk4rp9nhliln5cwcp3kc6-source/lib/modules.nix:821:9:

          820|     in warnDeprecation opt //
          821|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          822|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: cannot convert a function to JSON

       at /nix/store/bx5hkjqmjjy416lw2z51192hs7nk48pz-source/lib.nix:120:18:

          119|
          120|   mkVencordCfg = cfg:
             |                  ^
          121|   let
joinemm commented 2 hours ago

actually this looks like the same issue as https://github.com/KaylorBen/nixcord/issues/18