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