mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
482a6625a9
svn path=/nixos/trunk/; revision=7319
8 lines
296 B
Bash
Executable file
8 lines
296 B
Bash
Executable file
#! /bin/sh -e
|
|
if test -z "$NIXOS_CONFIG"; then
|
|
NIXOS_CONFIG=/etc/nixos/configuration.nix
|
|
fi
|
|
nix-env -p /nix/var/nix/profiles/system -f configuration/system.nix \
|
|
--arg configuration "import $NIXOS_CONFIG" \
|
|
-i -A system
|
|
/nix/var/nix/profiles/system/bin/switch-to-configuration switch
|