On 08/24/2016 08:59 PM, Daniel Hlynskyi wrote:
> 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?

The problem is that your code replaces *whole* `linuxPackages` by this
`linuxPackages.virtualbox`. It should work to have
    linuxPackages = sup_.linuxPackages // {
        virtualbox = sup_.linuxPackages.virtualbox.override {
            headless = true
        };
    };

--Vladimir


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to