mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
afd36a88eb
svn path=/nixos/trunk/; revision=7705
10 lines
351 B
Bash
Executable File
10 lines
351 B
Bash
Executable File
#! /bin/sh -e
|
|
|
|
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 \
|
|
--arg configuration "import $NIXOS_CONFIG" \
|
|
--set -A system
|
|
/nix/var/nix/profiles/system/bin/switch-to-configuration switch
|