[Nix-dev] Nix OS installation problems - Where's the hard drive?
Alexander Zubkov
green at msu.ru
Sat Oct 11 09:30:18 CEST 2014
There was a typo, I think. It should be:
/nix/store/*/nixos/nixos/release.nix
I also usually find this directory using ~/.nix-defepr
Also, I think that using nix-build with this release.nix is not enough,
you should copy it and make there some changes to embed your kernel
configuration. Because I think it does not use your system
configuration.nix. But thus is my assumption and I'm not 100% sure.
On 10/11/2014 10:20 AM, Joseph Joe wrote:
> David, that modification worked and set the hard drive parameter. Thanks!
>
> I now would like to create an image file from the configuration.
>
> I issued the command:
> $ export NIX_PATH=$NIXREPOS
>
> But, the command:
> $ nix-build -A iso_graphical.x86_64-linux $NIXREPOS/nixos/release.nix
>
> returns with the error:
>
> error: getting status of `/nixos/release.nix': No such file or directory
>
>
> Wout, I do not have a directory /nix/store/*/nixpkgs for some reason.
> I am pretty sure I have nix pkgs installed since it comes with Nix OS.
>
> my current path in the non root account is
> /nix/store/6kkqnidx9k0j137zs2mwvd2f8j7fzlxp-kde-workspace-4.11.6/bin:/home/joej/bin:/var/setuid-wrappers:/home/joej/.nix-profile/bin:/home/joej/.nix-profile/sbin:/home/joej/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/run/current-system/sw/bin:/run/current-system/sw/sbin:/run/current-system/sw/lib/kde4/libexec
>
> In the root account, the path is
> /root/bin:/var/setuid-wrappers:/root/.nix-profile/bin:/root/.nix-profile/sbin:/root/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/run/current-system/sw/bin:/run/current-system/sw/sbin:/run/current-system/sw/lib/kde4/libexec
>
>
> On Fri, Oct 10, 2014 at 2:44 PM, David Guibert <david.guibert at gmail.com> wrote:
>>
>> 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
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
More information about the nix-dev
mailing list