summaryrefslogtreecommitdiffstats
path: root/nixos/lib
AgeCommit message (Collapse)Author
2014-11-08Revert "nixos: iso-image: use syslinux bootloader for USB booting support"Luca Bruno
This reverts commit 455db168b30d53c903c96be80ef843b79e0744ae.
2014-11-02nixos: iso-image: use syslinux bootloader for USB booting supportBob van der Linden
This changes the bootloader for iso generation from Grub to syslinux. In addition this adds USB booting support, so that "dd" can be used to burn the generated ISO to USB thumbdrives instead of needing applications like UnetBootin.
2014-09-25test-driver: Use netpbm instead of imagemagickEelco Dolstra
Imagemagick pulls in 100s of megabytes of dependencies.
2014-09-07nixos/test-reports: use local copy of jqueryBjørn Forsman
The current way test reports get jquery, src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" only works when getting reports over http:// or https://, not file://. Change it so that it works for all protocols by using a local copy of jquery. This fixes the issue where locally created and browsed test reports cannot be navigated properly; clicking the '+' symbol to expand sub-sections doesn't work.
2014-09-03nixos/utils: Don't remove first character if not a /William A. Kennington III
2014-09-02Merge pull request #3779 from offlinehacker/dockerMichael Raskin
full nixos inside docker
2014-08-31Revert "Revert "Fix syntax error in nixos/lib/build-vms.nix, introduced by ↵William A. Kennington III
86c0f8c"" This reverts commit 2f697bf6931b24cdd428e22effbf6427a85afd42.
2014-08-31Revert "Revert "Merge pull request #3182 from wkennington/master.ipv6""William A. Kennington III
This reverts commit ea8910652fcecbcd4f21aa1c66b1a0a239408b04.
2014-08-31Revert "Merge pull request #3182 from wkennington/master.ipv6"Rob Vermaas
This reverts commit b23fd6585481a42937e105d5fce630a549900e86, reversing changes made to 43654cba2c280ce17b81db44993d1c1bcae3a9c6.
2014-08-31Revert "Fix syntax error in nixos/lib/build-vms.nix, introduced by 86c0f8c"Rob Vermaas
This reverts commit 704e91bab005eabe968a3b140222fb0cf7afd4db.
2014-08-30Fix syntax error in nixos/lib/build-vms.nix, introduced by 86c0f8cRickard Nilsson
2014-08-30Refactor nixos files relying on the old ipAddress / prefixLength / ↵William A. Kennington III
subnetMask attributes
2014-08-25nixos: make-system-tarball, add option for extra arguments for tarJaka Hudoklin
Sometimes extra arguments when making tarball are required, for example if making a container owner of files has to be changed to root.
2014-08-04Merge remote-tracking branch 'origin/master' into staging.Peter Simons
Conflicts: pkgs/desktops/e18/enlightenment.nix
2014-07-30makeTest: Pass nodes attributeEelco Dolstra
This allows doing things like: nix-build nixos/tests/misc.nix -A nodes.machine.config.system.build.initialRamdisk
2014-07-01Merge remote-tracking branch 'origin/master' into stagingEelco Dolstra
Conflicts: pkgs/servers/serfdom/default.nix
2014-06-30Another attempt to eradicate ensureDirEelco Dolstra
See c556a6ea46e71e1907d78b71fab36df30297b3ad.
2014-06-28support for nixos test namesFlorian Friesdorf
2014-06-27nixos/log2html: Remove schema from jQuery URLs.aszlig
This allows viewing test logs for example when using a Hydra running with HTTPS. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-05-21test-driver: Set context to include machines created by createMachineEelco Dolstra
2014-04-24Fix simpleTest functionEelco Dolstra
2014-04-17Fix waitForXEelco Dolstra
2014-04-17journalctl no longer parses the flag "-bu"Eelco Dolstra
2014-04-16no-x-libs.nix: Disable su xauth forwarding, and X11 dependency in dbusEelco Dolstra
2014-04-14Simplify running tests even furtherEelco Dolstra
Now you can just say: $ nix-build '<nixos/tests/login.nix>' You can still get the driver script for interactive testing: $ nix-build '<nixos/tests/login.nix>' -A driver $ ./result/bin/nixos-test-driver
2014-04-14Make it easier to run the testsEelco Dolstra
You can now run a test in the nixos/tests directory directly using nix-build, e.g. $ nix-build '<nixos/tests/login.nix>' -A test This gets rid of having to add the test to nixos/tests/default.nix. (Of course, you still need to add it to nixos/release.nix if you want Hydra to run the test.)
2014-04-09Disable allowUnfree by defaultEelco Dolstra
Fixes #2134.
2014-04-07Remove ignored argument to syncEelco Dolstra
2014-03-18Shut up Perl warningEelco Dolstra
2014-03-18Revert "test-driver: Set the date to the current time on boot"Eelco Dolstra
This reverts commit 4e6eae45ee8c2357acf3dc7e3caba9d86c2edeac. It breaks running the test driver interactively (in that it causes all VMs to be started immediately, which is not always what you wnat).
2014-03-17test-driver: Set the date to the current time on bootShea Levy
Should allow merging #1816
2014-03-03Move generation of coverage reports from nixos/lib/testing to releaseToolsEelco Dolstra
Also, turn some stdenv adapters into setup hooks.
2014-03-03Sync /tmp/xchg to ensure that the coverage data is flushedEelco Dolstra
2014-01-22nixos X tests: wait for logind to link a session to the serverShea Levy
There seems to be some race causing failures if an X command gets in before slim starts the session Signed-off-by: Shea Levy <shea@shealevy.com>
2013-11-27Add support for lightweight NixOS containersEelco Dolstra
You can now say: systemd.containers.foo.config = { services.openssh.enable = true; services.openssh.ports = [ 2022 ]; users.extraUsers.root.openssh.authorizedKeys.keys = [ "ssh-dss ..." ]; }; which defines a NixOS instance with the given configuration running inside a lightweight container. You can also manage the configuration of the container independently from the host: systemd.containers.foo.path = "/nix/var/nix/profiles/containers/foo"; where "path" is a NixOS system profile. It can be created/updated by doing: $ nix-env --set -p /nix/var/nix/profiles/containers/foo \ -f '<nixos>' -A system -I nixos-config=foo.nix The container configuration (foo.nix) should define boot.isContainer = true; to optimise away the building of a kernel and initrd. This is done automatically when using the "config" route. On the host, a lightweight container appears as the service "container-<name>.service". The container is like a regular NixOS (virtual) machine, except that it doesn't have its own kernel. It has its own root file system (by default /var/lib/containers/<name>), but shares the Nix store of the host (as a read-only bind mount). It also has access to the network devices of the host. Currently, if the configuration of the container changes, running "nixos-rebuild switch" on the host will cause the container to be rebooted. In the future we may want to send some message to the container so that it can activate the new container configuration without rebooting. Containers are not perfectly isolated yet. In particular, the host's /sys/fs/cgroup is mounted (writable!) in the guest.
2013-11-26Add a regression test for hostname / nss_myhostnameEelco Dolstra
Issue #1248.
2013-10-29Fix environment.checkConfigurationOptionsEelco Dolstra
This requires delaying the declaredness check until later, otherwise we get an infinite recursion querying environment.checkConfigurationOptions.
2013-10-28Fix nixos-optionEelco Dolstra
In particular, it no longer produces an "infinite recursion" error when run with no arguments.
2013-10-28Check for undeclared optionsEelco Dolstra
2013-10-28Big cleanup of the NixOS module systemEelco Dolstra
The major changes are: * The evaluation is now driven by the declared options. In particular, this fixes the long-standing problem with lack of laziness of disabled option definitions. Thus, a configuration like config = mkIf false { environment.systemPackages = throw "bla"; }; will now evaluate without throwing an error. This also improves performance since we're not evaluating unused option definitions. * The implementation of properties is greatly simplified. * There is a new type constructor "submodule" that replaces "optionSet". Unlike "optionSet", "submodule" gets its option declarations as an argument, making it more like "listOf" and other type constructors. A typical use is: foo = mkOption { type = type.attrsOf (type.submodule ( { config, ... }: { bar = mkOption { ... }; xyzzy = mkOption { ... }; })); }; Existing uses of "optionSet" are automatically mapped to "submodule". * Modules are now checked for unsupported attributes: you get an error if a module contains an attribute other than "config", "options" or "imports". * The new implementation is faster and uses much less memory.
2013-10-23Add a way to define obsolete options that have no replacementEelco Dolstra
2013-10-16Fix runInMachineEelco Dolstra
It requires a writable /nix/store to store the build result. Also, wait until we've reached multi-user.target before doing the build, and do a sync at the end to ensure all data to $out is properly written. http://hydra.nixos.org/build/6496716
2013-10-11Terrible backward compatibility hackEelco Dolstra
2013-10-10Update the release expressions and the channel generatorsEelco Dolstra
2013-10-10Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra