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