summary refs log tree commit diff
path: root/nixos/lib
Commit message (Collapse)AuthorAge
* VM tests: Don't produce output on failureEelco Dolstra2015-04-10
| | | | | Producing output makes it hard to restart builds that failed for intermittent reasons (like timeouts). So let's not do that.
* Merge rename.nix changes.Nicolas B. Pierron2015-04-03
|\
| * nixos: test: add tests for booting installation iso in various waysBob van der Linden2015-03-24
| |
| * nixos: iso-image: filename escaping in xorrisoBob van der Linden2015-03-24
| |
| * nixos: iso-image: use syslinux bootloader for USB booting supportBob van der Linden2015-03-24
| | | | | | | | | | | | | | 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.
* | Document and rename internal option of modules.Nicolas B. Pierron2015-03-15
| |
* | Move most extra args out of eval-config.nixShea Levy2015-03-12
| |
* | Add comments about the module system interfaceShea Levy2015-03-12
| | | | | | | | | | | | | | Ideally the module system could be configured pretty much completely by the contents of the modules themselves, so add comments about avoiding complicating it further and possibly removing now-redundant configurability from the existing interface.
* | evalModules: Add internal option for the check argumentShea Levy2015-03-12
| |
* | nixos: Don't evaluate twice to get the value of config.nixpkgsShea Levy2015-03-12
|/
* In a test VM it's impossible to connect to itself, so fix thisSander van der Burg2015-02-19
|
* nixos: allow adding extra modules through environmentMathijs Kwik2014-12-16
| | | | | | | | | | | | | | This is useful for adding extra functionality or defaults to _every_ nixos evaluation. My use case is overriding behaviour for all nixos tests, for example setting packageOverrides to newer versions and changing some default dependencies/settings. By making this accessible through an environment variable, this can now be fully accomplished externally. No more need to fork nixos/nixpkgs (which becomes a maintenance burden), just use the channel instead and plug in via this envvar.
* nixos/make-system-tarball: extra commands to be executed before archiveJaka Hudoklin2014-12-11
|
* Revert "nixos: iso-image: use syslinux bootloader for USB booting support"Luca Bruno2014-11-08
| | | | This reverts commit 455db168b30d53c903c96be80ef843b79e0744ae.
* nixos: iso-image: use syslinux bootloader for USB booting supportBob van der Linden2014-11-02
| | | | | | | 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.
* test-driver: Use netpbm instead of imagemagickEelco Dolstra2014-09-25
| | | | Imagemagick pulls in 100s of megabytes of dependencies.
* nixos/test-reports: use local copy of jqueryBjørn Forsman2014-09-07
| | | | | | | | | | | | | | 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.
* nixos/utils: Don't remove first character if not a /William A. Kennington III2014-09-03
|
* Merge pull request #3779 from offlinehacker/dockerMichael Raskin2014-09-02
|\ | | | | full nixos inside docker
| * nixos: make-system-tarball, add option for extra arguments for tarJaka Hudoklin2014-08-25
| | | | | | | | | | | | Sometimes extra arguments when making tarball are required, for example if making a container owner of files has to be changed to root.
* | Revert "Revert "Fix syntax error in nixos/lib/build-vms.nix, introduced by ↵William A. Kennington III2014-08-31
| | | | | | | | | | | | 86c0f8c"" This reverts commit 2f697bf6931b24cdd428e22effbf6427a85afd42.
* | Revert "Revert "Merge pull request #3182 from wkennington/master.ipv6""William A. Kennington III2014-08-31
| | | | | | | | This reverts commit ea8910652fcecbcd4f21aa1c66b1a0a239408b04.
* | Revert "Merge pull request #3182 from wkennington/master.ipv6"Rob Vermaas2014-08-31
| | | | | | | | | | This reverts commit b23fd6585481a42937e105d5fce630a549900e86, reversing changes made to 43654cba2c280ce17b81db44993d1c1bcae3a9c6.
* | Revert "Fix syntax error in nixos/lib/build-vms.nix, introduced by 86c0f8c"Rob Vermaas2014-08-31
| | | | | | | | This reverts commit 704e91bab005eabe968a3b140222fb0cf7afd4db.
* | Fix syntax error in nixos/lib/build-vms.nix, introduced by 86c0f8cRickard Nilsson2014-08-30
| |
* | Refactor nixos files relying on the old ipAddress / prefixLength / ↵William A. Kennington III2014-08-30
|/ | | | subnetMask attributes
* Merge remote-tracking branch 'origin/master' into staging.Peter Simons2014-08-04
|\ | | | | | | | | Conflicts: pkgs/desktops/e18/enlightenment.nix
| * makeTest: Pass nodes attributeEelco Dolstra2014-07-30
| | | | | | | | | | | | This allows doing things like: nix-build nixos/tests/misc.nix -A nodes.machine.config.system.build.initialRamdisk
* | Merge remote-tracking branch 'origin/master' into stagingEelco Dolstra2014-07-01
|\| | | | | | | | | Conflicts: pkgs/servers/serfdom/default.nix
| * support for nixos test namesFlorian Friesdorf2014-06-28
| |
| * nixos/log2html: Remove schema from jQuery URLs.aszlig2014-06-27
| | | | | | | | | | | | | | This allows viewing test logs for example when using a Hydra running with HTTPS. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | Another attempt to eradicate ensureDirEelco Dolstra2014-06-30
|/ | | | See c556a6ea46e71e1907d78b71fab36df30297b3ad.
* test-driver: Set context to include machines created by createMachineEelco Dolstra2014-05-21
|
* Fix simpleTest functionEelco Dolstra2014-04-24
|
* Fix waitForXEelco Dolstra2014-04-17
|
* journalctl no longer parses the flag "-bu"Eelco Dolstra2014-04-17
|
* no-x-libs.nix: Disable su xauth forwarding, and X11 dependency in dbusEelco Dolstra2014-04-16
|
* Simplify running tests even furtherEelco Dolstra2014-04-14
| | | | | | | | | | | 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
* Make it easier to run the testsEelco Dolstra2014-04-14
| | | | | | | | | | | 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.)
* Disable allowUnfree by defaultEelco Dolstra2014-04-09
| | | | Fixes #2134.
* Remove ignored argument to syncEelco Dolstra2014-04-07
|
* Shut up Perl warningEelco Dolstra2014-03-18
|
* Revert "test-driver: Set the date to the current time on boot"Eelco Dolstra2014-03-18
| | | | | | 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).
* test-driver: Set the date to the current time on bootShea Levy2014-03-17
| | | | Should allow merging #1816
* Move generation of coverage reports from nixos/lib/testing to releaseToolsEelco Dolstra2014-03-03
| | | | Also, turn some stdenv adapters into setup hooks.
* Sync /tmp/xchg to ensure that the coverage data is flushedEelco Dolstra2014-03-03
|
* nixos X tests: wait for logind to link a session to the serverShea Levy2014-01-22
| | | | | | 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>
* Add support for lightweight NixOS containersEelco Dolstra2013-11-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add a regression test for hostname / nss_myhostnameEelco Dolstra2013-11-26
| | | | Issue #1248.
* Fix environment.checkConfigurationOptionsEelco Dolstra2013-10-29
| | | | | | This requires delaying the declaredness check until later, otherwise we get an infinite recursion querying environment.checkConfigurationOptions.