mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
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.
This commit is contained in:
parent
8c076ecd2f
commit
567cb12a13
21 changed files with 398 additions and 68 deletions
33
nyx
Executable file
33
nyx
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
|
||||
#!/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 "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue