nixpkgs/upgrade.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

8 lines
296 B
Bash
Executable file

#! /bin/sh -e
if test -z "$NIXOS_CONFIG"; then
NIXOS_CONFIG=/etc/nixos/configuration.nix
fi
nix-env -p /nix/var/nix/profiles/system -f configuration/system.nix \
--arg configuration "import $NIXOS_CONFIG" \
-i -A system
/nix/var/nix/profiles/system/bin/switch-to-configuration switch