Hi,

On Tue, Oct 7, 2014 at 10:28 AM, Wout Mertens <[email protected]> wrote:
> On Tue, Oct 7, 2014 at 4:49 AM, Joseph Joe <[email protected]> wrote:
>> I am still a bit confused. I added the following lines to
>> /etc/nixos/configuration.nix
>>
>> nixpkgs.config.packageOverrides = pkgs:
>>   { linux_3_4 = pkgs.linux_3_4.override {
>>       extraConfig =
>>         ''
>>           CONFIG_SCSI_SAS_ATA y
>>         '';
>>     };
>>   };

This will work only on kernel 3.4. You need to add this override for
each kernel version.
Or use the suggested alternative below

> Actually this will not work unless you're using linux_3_4 which I think
> you're not. The better way is what Alexander linked,
>
>  nixpkgs.config.packageOverrides = pkgs: {
>    stdenv = pkgs.stdenv // {
>      platform = pkgs.stdenv.platform // {
>        kernelExtraConfig = "CONFIG_SCSI_SAS_ATA y" ;
>      };
>    };
>  };

In both cases, the option in NixOS is "SCSI_SAS_ATA". Remove "CONFIG_"
to your configuration.nix because it's added by the .config generator.
-- 
Best regards, David
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to