nixos-config/switch

7 lines
164 B
Plaintext
Raw Normal View History

2020-02-17 17:00:59 +04:00
#!/bin/sh
PATH=/run/current-system/sw/bin
nix-env --profile /nix/var/nix/profiles/system --set $(readlink $1/result)
$1/result/bin/switch-to-configuration switch