[Nix-dev] Nix OS installation problems - Where's the hard drive?

David Guibert david.guibert at gmail.com
Fri Oct 10 23:44:20 CEST 2014


Hi,

On Tue, Oct 7, 2014 at 10:28 AM, Wout Mertens <wout.mertens at gmail.com> wrote:
> On Tue, Oct 7, 2014 at 4:49 AM, Joseph Joe <joej at reed.edu> 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


More information about the nix-dev mailing list