about summary refs log tree commit diff
path: root/nixos/modules/testing
Commit message (Collapse)AuthorAge
* Get all lib functions from lib, not pkgs.lib, in modulesShea Levy2014-07-02
|
* Fix the installer testEelco Dolstra2014-04-20
| | | | http://hydra.nixos.org/build/10419676
* Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
| | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
* Rename linuxManualConfig to buildLinuxShea Levy2014-01-21
| | | | Signed-off-by: Shea Levy <shea@shealevy.com>
* Allow running NixOS services outside of systemdEelco Dolstra2013-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | The attribute ‘config.systemd.services.<service-name>.runner’ generates a script that runs the service outside of systemd. This is useful for testing, and also allows NixOS services to be used outside of NixOS. For instance, given a configuration file foo.nix: { config, pkgs, ... }: { services.postgresql.enable = true; services.postgresql.package = pkgs.postgresql92; services.postgresql.dataDir = "/tmp/postgres"; } you can build and run PostgreSQL as follows: $ nix-build -A config.systemd.services.postgresql.runner -I nixos-config=./foo.nix $ ./result This will run the service's ExecStartPre, ExecStart, ExecStartPost and ExecStopPost commands in an appropriate environment. It doesn't work well yet for "forking" services, since it can't track the main process. It also doesn't work for services that assume they're always executed by root.
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10