feat: add home assistant capability with pi-relay
This commit is contained in:
parent
2374e3cd60
commit
460864912c
13 changed files with 408 additions and 35 deletions
12
scripts/nhs
Executable file
12
scripts/nhs
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
|
||||
REPO_ROOT=$(cd -- "$SCRIPT_DIR/.." && pwd)
|
||||
|
||||
exec nixos-rebuild switch \
|
||||
--flake /home/jet/Documents/extremist-software#extremist-software \
|
||||
--target-host jet@extremist-software \
|
||||
--sudo \
|
||||
--override-input noisebell "$REPO_ROOT" \
|
||||
"$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue