Ok, I propose that on your working Nix install: 1. you fork (github) and clone nixpkgs 2. do a nix-channel --update (use unstable channel) and checkout the revision it's at (see the last bit of the downloaded file) 3. you edit the file pkgs/os-specific/linux/kernel/common-config.nix to insert the SCSI_SAS_ATA y line at line 62 4. you run: nix-build ./nixos/release.nix -A iso_graphical.x86_64-linux (or iso_minimal.x86_64-linux if you want it faster) 5. test the result 6. if it works, commit your change and do a PR :)
Wout. On Tue, Oct 14, 2014 at 10:09 AM, Wout Mertens <wout.mert...@gmail.com> wrote: > Argh that's wrong, it's not reading default.nix but release.nix which > doesn't let you specify a config. Thinking about that. > > On Tue, Oct 14, 2014 at 9:54 AM, Wout Mertens <wout.mert...@gmail.com> > wrote: > >> Hi Joseph Joe, >> >> It seems your kernel configuration didn't make it into your image. >> >> This is where the configuration is read into the evaluation: >> https://github.com/NixOS/nixpkgs/blob/master/nixos/default.nix#L1 >> >> So it either reads the file pointed to by $NIXOS_CONFIG or it gets >> nixos-config from the NIX_PATH. >> >> => NIXOS_CONFIG=$PWD/myconfig.nix nix-build "<nixpkgs/nixos/release.nix>" >> -A iso_graphical.x86_64-linux >> >> Wout. >> >> On Tue, Oct 14, 2014 at 5:29 AM, Joseph Joe <j...@reed.edu> wrote: >> >>> David, the command >>> >>> $ nix-build "<nixpkgs/nixos/release.nix>" -A iso_graphical.x86_64-linux >>> >>> worked and created an iso. I made a live usb with it, but the problem >>> persists. Upon booting, the only available hard drive is the usb. >>> >>> So, the iso did not use the system configuration.nix file. >>> >>> Alexander, could you elaborate on what I'd need to copy and change to >>> embed these kernel changes? I tried to add the same lines of code (... >>> SCSI_SAS_ATA y) into release.nix, but got an error saying that >>> release.nix is part of a read only file system. >>> >>> On Sat, Oct 11, 2014 at 1:10 AM, David Guibert <david.guib...@gmail.com> >>> wrote: >>> > >>> > Hi, >>> > >>> > On Sat, Oct 11, 2014 at 8:20 AM, Joseph Joe <j...@reed.edu> wrote: >>> > > I now would like to create an image file from the configuration. >>> > > >>> > > I issued the command: >>> > > $ export NIX_PATH=$NIXREPOS >>> > >>> > check both variables >>> > $ echo $NIX_PATH >>> > /nix/var/nix/profiles/per-user/root/channels/nixos >>> > >>> > You could also set it to your working directory of nixpkgs. >>> > >>> > > But, the command: >>> > > $ nix-build -A iso_graphical.x86_64-linux $NIXREPOS/nixos/release.nix >>> > >>> > Do build an ISO, you could use >>> > >>> > $ nix-build "<nixpkgs/nixos/release.nix>" -A iso_graphical.x86_64-linux >>> > >>> > "<nixpkgs>" will be substituted by the path of nixpkgs by looking up >>> > inside $NIX_PATH. >>> > -- >>> > Regards, David >>> >> >> >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev