[Nix-dev] nixos principles

Sander van der Burg - EWI S.vanderBurg at tudelft.nl
Fri Sep 24 20:01:50 CEST 2010


I assume that you tried the 'Install guest additions...' function from VirtualBox? This won't work, because the libraries/binaries on the guest additions CD must be patched first (because otherwise it won't be able to find its dependencies). The guest additions of VirtualBox can be supported differently, though. Our wiki has instructions how to use the VirtualBox guest additions properly: 

http://wiki.nixos.org/wiki/InstallingOnVirtualBox .

This automatically works by enabling some options in your /etc/nixos/configuration.nix

I haven't tried VMware though, but I know that the binaries/libraries on the VMware CD must also be patched. So far, nobody has tried this yet as far as I know.
 
-----Oorspronkelijk bericht-----
Van: nix-dev-bounces at cs.uu.nl namens Roderick Ford
Verzonden: vr 24-9-2010 15:20
Aan: nix-dev at cs.uu.nl
Onderwerp: [Nix-dev] nixos principles
 
As an introduction to NixOS, a newly interested person may try to install
NixOS in VirtualBox or VMWare.  (In fact, a co-worker of mine could not get
the NixOS live cd to install in VirtualBox, or VMWare, so he gave up.)

Now, if VirtualBox hosts a NixOS guest, and we run the
VirtualBox-GuestAdditions from the host, the automatically mounted iso has
a shell script and a hybrid shell script.  Opening that up, after it fails
to complete, I found that it does not support NIXOS specifically.

So, my question is:
As a matter of "nixos principles", would we want to go out of our way to
make a "special" package or adaptation for a package?  It seems like NixOS
principles would suggest we do NEITHER of the following:

1. the package trying to run is from the host machine, not the NixOS
machine. Therefore, it seems more likely to be fixable by pursuing Oracle
with an edit suggestion, but extremely unlikely to happen soon.
2. nixos could provide a "new package" ... something like
"VirtualBox-LinuxAdditions" which contains the customized package.  We would
then be "creating custom NixOS packages" rather than creating "configuration
wrappers for existing packages".

Roderick Ford

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100924/83b91b4d/attachment.html 


More information about the nix-dev mailing list