blob: c32ba9c3088ab9e8b0493404a45bb35f871a294a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#! /bin/sh
#
# usage: ./deploy system_name [target]
#
set -euf
system_name=$1
target=${2-root@$system_name}
export PATH="$PWD/bin:$PATH"
#export nixpkgs=/var/nixpkgs
export nixpkgs_root=$PWD/tmp/nixpkgs
export config_root=$PWD
export retiolum_hosts=$PWD/hosts
export secrets_root=$PWD/secrets
exec nixos-deploy "$system_name" "$target"
|