mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
d663f88c65
svn path=/nixos/trunk/; revision=7331
9 lines
299 B
Bash
Executable File
9 lines
299 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" \
|
|
--set -A system
|
|
/nix/var/nix/profiles/system/bin/switch-to-configuration switch
|