summary refs log tree commit diff
path: root/default.nix
Commit message (Collapse)AuthorAge
* * Support a `system' argument for if you want to do hacky things likeEelco Dolstra2009-11-06
| | | | | | | | change a NixOS installation from x86_64-linux to i686-linux (or vice versa if you have distributed builds enabled - I used this upgrade from 32-bit to 64-bit NixOS). svn path=/nixos/trunk/; revision=18177
* * system.build.system -> system.build.toplevel, since the former nameEelco Dolstra2009-09-04
| | | | | | is just too weird. svn path=/nixos/trunk/; revision=16954
* * lib/eval-config.nix: combined "configuration" and "extraModules"Eelco Dolstra2009-08-27
| | | | | | | | | | into one argument "modules". * release.nix: fixed the manual job. * ISO generation: break an infinite recursion. Don't know why this suddenly happens. Probably because of the nixpkgs.config change, but I don't see why. Maybe the option evaluation is too strict. svn path=/nixos/trunk/; revision=16878
* inherit eval to access option declarations from outside programs.Nicolas Pierron2009-08-19
| | | | svn path=/nixos/trunk/; revision=16770
* * New nixos-rebuild action: "nixos-rebuild build-vm" builds a virtualEelco Dolstra2009-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | machine containing a replica (minus the state) of the system configuration. This is mostly useful for testing configuration changes prior to doing an actual "nixos-rebuild switch" (or even "nixos-rebuild test"). The VM can be started as follows: $ nixos-rebuild build-vm $ ./result/bin/run-*-vm which starts a KVM/QEMU instance. Additional QEMU options can be passed through the QEMU_OPTS environment variable (e.g. QEMU_OPTS="-redir tcp:8080::80" to forward a host port to the guest). The fileSystem attribute of the regular system configuration is ignored (using mkOverride), because obviously we can't allow the VM to access the host's block devices. Instead, at startup the VM creates an empty disk image in ./<hostname>.qcow2 to store the VM's root filesystem. Building a VM in this way is efficient because the VM shares its Nix store with the host (through a CIFS mount). However, because the Nix store of the host is mounted read-only in the guest, you cannot run Nix build actions inside the VM. Therefore the VM can only be reconfigured by re-running "nixos-rebuild build-vm" on the host and restarting the VM. svn path=/nixos/trunk/; revision=16662
* * Don't try to run fsck on ISO-9660/UDF filesystems.Eelco Dolstra2009-06-15
| | | | svn path=/nixos/branches/modular-nixos/; revision=15963
* * Removed redundant import (Nicolas Pierron).Eelco Dolstra2009-06-05
| | | | svn path=/nixos/branches/modular-nixos/; revision=15876
* * Make eval-config.nix a bit more general to make it easier to buildEelco Dolstra2009-06-05
| | | | | | other kinds of configurations (like the installation CD). svn path=/nixos/branches/modular-nixos/; revision=15864
* * Refactoring: moved some options out of system/options.nix (almostEelco Dolstra2009-05-27
| | | | | | | empty now), do more of bashrc.sh declaratively, and moved nsswitch generation to modules/config/nsswitch.nix. svn path=/nixos/branches/modular-nixos/; revision=15754
* * Move the config evaluation into a separate expression so that it canEelco Dolstra2009-05-27
| | | | | | be reused, e.g. for building the CD/DVD. svn path=/nixos/branches/modular-nixos/; revision=15744
* * Move the list of modules into a separate file. This file could beEelco Dolstra2009-05-27
| | | | | | generated by some find/grep hackery as Nicolas suggested. svn path=/nixos/branches/modular-nixos/; revision=15743
* svn path=/nixos/branches/modular-nixos/; revision=15742Eelco Dolstra2009-05-27
|
* * Turn the top-level derivation of a NixOS configuration ("system")Eelco Dolstra2009-05-27
| | | | | | | | | | into a NixOS module (modules/system/activation/top-level.nix - couldn't think of a better name). The top-level derivation is returned in config.system.build.system. * Inlined system.sh in top-level.nix so that we don't have to pass everything through environment variables. svn path=/nixos/branches/modular-nixos/; revision=15740
* * Make modules/system/boot/stage-1.nix a proper module that exportsEelco Dolstra2009-05-27
| | | | | | the initial ramdisk as config.system.build.bootStage1. svn path=/nixos/branches/modular-nixos/; revision=15739
* * Move the definition of the set of system packages toEelco Dolstra2009-05-25
| | | | | | | | | | | modules/config/system-path.nix. system/system.nix is now almost empty. * Removed the cleanStart option - it should be possible to get the same functionality by overriding config.system.path (or defining config.system.systemPackages with a higher priority - don't know if that works though). svn path=/nixos/branches/modular-nixos/; revision=15727
* svn path=/nixos/branches/modular-nixos/; revision=15670Eelco Dolstra2009-05-20
|
* * Synced with trunk @ 14801Nicolas Pierron2009-04-08
|\ | | | | | | svn path=/nixos/branches/modular-nixos/; revision=14953
| * Complete nixpkgsPath->nixpkgs renameMichael Raskin2009-03-27
| | | | | | | | svn path=/nixos/trunk/; revision=14732
* | * Synced with trunk @ 13663Nicolas Pierron2009-04-08
|\| | | | | | | svn path=/nixos/branches/modular-nixos/; revision=14945
| * * When doing chroot builds, the `build-chroot-dirs' option shouldEelco Dolstra2008-12-15
| | | | | | | | | | | | | | | | | | include the closure of /bin/sh. Otherwise all builders that call /bin/sh will fail when using the new chroot implementation, which only bind-mounts the inputs of a build rather than the whole Nix store. svn path=/nixos/trunk/; revision=13640
* | - Move some system configuration to options:Nicolas Pierron2008-11-18
|/ | | | | | | | | | | | | | | | | | | | | * system.nssModules * system.modulesTree * system.sbin.modprobe * system.sbin.mount * nix.envVars - Remove Arguments that can be accessed either by "config" or "pkgs". - Use the new scheme for upstart-jobs/default.nix. This is now a configuration file which is imported by system/options.nix. - Jobs can now include upstart-job/default.nix: * upstrat-jobs/cron.nix * upstart-jobs/dhclient.nix => No Nixos file refers to upstart-jobs/default.nix except if one of its options is require to define an extra job. (e.g.: cron, dhclient) svn path=/nixos/branches/fix-style/; revision=13327
* nixos-rebuild: take NIXPKGS location from env, tooMarc Weber2008-10-06
| | | | svn path=/nixos/trunk/; revision=12981
* * Fixed references to values moved to boot-stage-1.nix.Eelco Dolstra2008-08-11
| | | | svn path=/nixos/trunk/; revision=12582
* Added nixos-gen-seccure-keys to nixosToolsMichael Raskin2008-03-03
| | | | svn path=/nixos/trunk/; revision=10937
* * Put the static files for the Subversion service in a separate directory.Eelco Dolstra2008-02-14
| | | | svn path=/nixos/trunk/; revision=10697
* * Installation CD: include a lot of modules (SATA, PATA, Firewire,Eelco Dolstra2008-02-08
| | | | | | | | | | | USB, some SCSI controllers) in the initrd for mounting the CD. * Add nix-hardware-scan to the system. * Upstart: don't use the -v flag. * Include the NixOS version in the ISO image filename. * Include testdisk and ms-sys in the CD. * Some bugfixes in the installer. svn path=/nixos/trunk/; revision=10556
* * Option to enable the Intel 3945 firmware. (It's enabled byEelco Dolstra2008-01-12
| | | | | | | | | | | | | | | default since it doesn't seem to have the legal issues of the Intel 2200 firmware.) * Firmware loader: don't write in /tmp. Also a hack to quickly test new firmwares. * Revert r10105 since the build fails if configuration.nix is a symlink. Anyway copying configuration.nix does not necessarily make sense since it can import other expressions, which would also have to be copied. Perhaps a better approach would be to write a serialisation of the config to a file (maybe with builtins.toXML). svn path=/nixos/trunk/; revision=10127
* Now configuration.nix is copied into shared.Michael Raskin2008-01-09
| | | | svn path=/nixos/trunk/; revision=10105
* * Eliminate all calls to config.get.Eelco Dolstra2007-11-09
| | | | svn path=/nixos/trunk/; revision=9619
* * Doh doh doh!Eelco Dolstra2007-10-19
| | | | svn path=/nixos/trunk/; revision=9497
* * nixos-rebuild: before building NixOS, first build the latest Nix andEelco Dolstra2007-09-18
| | | | | | | use that one to build NixOS. This will make it easier to use bleeding-edge features in the NixOS expressions. svn path=/nixos/trunk/; revision=9336
* * Add a top-level default.nix for NixOS which has attributes usefulEelco Dolstra2007-09-18
for building parts of the system. E.g. $ nix-build /etc/nixos/nixos -A upstartJobs.xserver to build the Upstart job for the X server, or $ nix-build /etc/nixos/nixos -A kernel to build the NixOS kernel. * /etc/profile.sh: if ~/.nix-defexpr doesn't exist yet, create it as a directory and add links to root's channels, /etc/nixos/nixos and /etc/nixos/install-source.nix (as "nixpkgs_sys"). * boot.useKernel -> boot.kernel. svn path=/nixos/trunk/; revision=9334