Qutebrowser overlay not working in flake based home-manager NixOS module

My configuration is using flake-parts and flakes with home-manager as NixOS module.

I am trying to add a qutebrowser overlay with widevine and vulkan support as overrides.

# In home.nix
{pkgs, ...}: {
  nixpkgs.overlays = [
    (final: prev: {
      qutebrowser-overlay = prev.qutebrowser.override {
        enableWideVine = true;
        enableVulkan = true;
      };
    })
  ];
  programs = {
    qutebrowser = {
      enable = true;
      pacakge = pkgs.qutebrowser-overlay;
     };
  };

The above returns

error: attribute 'qutebrowser-overlay' missing
       at /nix/store/s5xcqf930vgxfpkfwjspviyp23990ml2-source/modules/user/Programs/qutebrowser.nix:13:17:
           12|       enable = true;
           13|       pacakge = pkgs.qutebrowser-overlay;
             |                 ^
           14|

When I add the nixpkgs.overlays to configuration.nix. This is what returned:

error: The option `home-manager.users.krish.programs.qutebrowser.pacakge' does not exist. Definition values:
       - In `/nix/store/vsmq3zv8h1s35ynf9g8yay9n82fv2szp-source/modules/user/Programs/qutebrowser.nix': <derivation qutebrowser-3.4.0>

You are very likely using HM as a system module with home-manager.useGlobalPkgs enabled, which effectively disabled home-manager.uaers.<name>.nixpkgs.

You have to add your overlay at the system level. Or just don’t use an overlay and override inline.

The error you get when moving the overlay to the system is because you typoed package.

1 Like

Thanks a lot for your help. I had another query like this on reddit 7 mo ago and was trying to remember the soln. Found it now