How can I install ytui-music?

Somehow, it’s not installing

sudo nixos-rebuild switch
building Nix...
building the system configuration...
error: undefined variable 'ytui-music'

       at /home/b0ef/ds/platform/conf/etc.nixos.configuration.ximian.nix:520:5:

          519|
          520|     ytui-music
             |     ^
          521|
(use '--show-trace' to show detailed location information)

It’s probably not correctly defined. Perhaps you forgot to add pkgs?

  users.users.<user> = {
    packages = with pkgs; [
      ytui-music
    ];
  };

or

  users.users.<user> = {
    packages = [
      pkgs.ytui-music
    ];
  };

Right, I got 100 packages in there, so that’s why I’m stumped.

It works for you?

Yup. I tested it earlier and it installs correctly, although the app crashes when i run it (which is another issue).

If you want to test if the package can be installed on your system then you can try running it inside a shell before you include it in your configs:

nix-shell -p ytui-music