2006-12-12 01:08:26 +01:00
|
|
|
#! /bin/sh -e
|
|
|
|
if test -z "$NIXOS_CONFIG"; then
|
|
|
|
NIXOS_CONFIG=/etc/nixos/configuration.nix
|
|
|
|
fi
|
2007-01-04 11:29:40 +01:00
|
|
|
nix-env -p /nix/var/nix/profiles/system -f system/system.nix \
|
2006-12-12 01:08:26 +01:00
|
|
|
--arg configuration "import $NIXOS_CONFIG" \
|
2006-12-13 13:21:06 +01:00
|
|
|
--set -A system
|
2006-12-10 23:29:44 +01:00
|
|
|
/nix/var/nix/profiles/system/bin/switch-to-configuration switch
|