[Nix-dev] Override virtualbox

Daniel Hlynskyi abcz2.uprola at gmail.com
Wed Aug 24 20:59:33 CEST 2016


I know about nixpkgs.config.packageOverrides, but I cannot override
virtualbox with it. Given

    nixpkgs.config.packageOverrides = sup_: {
      linuxPackages.virtualbox =
sup_.linuxPackages.virtualbox.override { headless = true; };
    };
    virtualisation.virtualbox.host.enable = true;

I get error in nixops deploy:

  error: attribute ‘kernel’ missing, at
/home/danbst/nixpkgs/nixos/modules/services/logging/klogd.nix:12:42
  (use ‘--show-trace’ to show detailed location information)

Without override it evaluates OK.

What am I doing wrong?


More information about the nix-dev mailing list