infrastructure/nyx
kat witch 567cb12a13
Refactors + firefox + shell helper script
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.
2021-02-26 05:32:24 +00:00

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 "$@"