oddlama / whisper-overlay

A wayland overlay providing speech-to-text functionality for any application via a global push-to-talk hotkey
MIT License
14 stars 0 forks source link

NixOS Readme package didn't work #1

Closed KenMacD closed 2 months ago

KenMacD commented 2 months ago

I'm not sure if it's an overlay issue or what, but the instructions for NixOS where it says:

environment.systemPackages = [pkgs.whisper-overlay];

throws an error as it's unable to find the package. For testing it locally for now I'm just using:

environment.systemPackages = [
  inputs.whisper-overlay.packages.${system}.whisper-overlay
];
oddlama commented 2 months ago

The package only works that way if you add the NixOS module, which will then automatically add an overlay to your nixpkgs instanciation. But what you are doing right now is fine too.

KenMacD commented 2 months ago

Strange. I was using it as a module. In my flake.nix I had:

hostname = nixpkgs.lib.nixosSystem {
  inherit system;
  specialArgs = {inherit self system inputs;};
  modules = [
    ({...}: {
      imports = [
        inputs.whisper-overlay.nixosModules.default
      ];
      services.realtime-stt-server.enable = true;
      environment.systemPackages = [
        pkgs.whisper-overlay
      ];
    })

and it seemed like the overlay didn't apply. No biggie though.