nixpkgs/upgrade.sh
Eelco Dolstra b6b5bafa22 * Refactoring.
svn path=/nixos/trunk/; revision=7533
2007-01-04 10:29:40 +00:00

9 lines
292 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 system/system.nix \
--arg configuration "import $NIXOS_CONFIG" \
--set -A system
/nix/var/nix/profiles/system/bin/switch-to-configuration switch