17 lines
269 B
Bash
Executable File
17 lines
269 B
Bash
Executable File
#! /bin/sh
|
|
#
|
|
# usage: ./deploy HOST
|
|
#
|
|
set -euf
|
|
|
|
host=$1
|
|
|
|
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 "$host"
|