2006-12-12 00:08:26 +00:00
|
|
|
#! /bin/sh -e
|
|
|
|
if test -z "$NIXOS_CONFIG"; then
|
|
|
|
NIXOS_CONFIG=/etc/nixos/configuration.nix
|
|
|
|
fi
|
2006-12-11 17:36:57 +00:00
|
|
|
nix-env -p /nix/var/nix/profiles/system -f configuration/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
|