3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/test.sh
Eelco Dolstra 482a6625a9 * Use the configuration in /etc/nixos/configuration.nix by default.
svn path=/nixos/trunk/; revision=7319
2006-12-12 00:08:26 +00:00

9 lines
244 B
Bash
Executable file

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