nixpkgs-suyu/test.sh
Eelco Dolstra afd36a88eb * Assume by default that the NixOS sources are in /etc/nixos.
svn path=/nixos/trunk/; revision=7705
2007-01-17 12:06:26 +00:00

9 lines
296 B
Bash
Executable file

#! /bin/sh -e
if test -z "$NIXOS"; then NIXOS=/etc/nixos/nixos; fi
if test -z "$NIXOS_CONFIG"; then NIXOS_CONFIG=/etc/nixos/configuration.nix; fi
nix-build $NIXOS/system/system.nix \
--arg configuration "import $NIXOS_CONFIG" \
-A system -K -k
./result/bin/switch-to-configuration test