nixpkgs/upgrade.sh
Eelco Dolstra d663f88c65 * Use nix-env --set.
svn path=/nixos/trunk/; revision=7331
2006-12-13 12:21:06 +00:00

9 lines
299 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" \
--set -A system
/nix/var/nix/profiles/system/bin/switch-to-configuration switch