mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
Moved each virtualhost related to a service into that service file. Set up firefox syncserver. Moved to using home-manager to fully manage firefox profiles. Moved waybar into its own folder. Moved NUR into sources. Stopped using sources for arc's scream package, so on.
33 lines
No EOL
427 B
Text
Executable file
33 lines
No EOL
427 B
Text
Executable file
|
|
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
usage() {
|
|
echo example: $0 build samhain boot
|
|
}
|
|
|
|
build() {
|
|
HOST=$1
|
|
if [ $# -gt 2 ]; then
|
|
METHOD=$2
|
|
else
|
|
METHOD="switch"
|
|
fi
|
|
|
|
nix build -f . deploy.$HOST && ./result $METHOD
|
|
}
|
|
|
|
main() {
|
|
if [ $# -lt 2 ]; then
|
|
usage
|
|
else
|
|
CMD=$1
|
|
shift
|
|
|
|
if [[ $CMD == "build" ]]; then
|
|
build "$@"
|
|
fi
|
|
fi
|
|
}
|
|
|
|
main "$@" |