mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Find commands for tridactyl. WIP subcommand.
WIP subcommand for installing a new host.
This commit is contained in:
parent
bede674088
commit
6727a8c014
2 changed files with 14 additions and 1 deletions
|
|
@ -32,6 +32,12 @@
|
||||||
" Binds
|
" Binds
|
||||||
"
|
"
|
||||||
|
|
||||||
|
bind / fillcmdline find
|
||||||
|
bind ? fillcmdline find -?
|
||||||
|
bind n findnext 1
|
||||||
|
bind N findnext -1
|
||||||
|
bind ,<Space> nohlsearc
|
||||||
|
|
||||||
" Comment toggler for Reddit, Hacker News and Lobste.rs
|
" Comment toggler for Reddit, Hacker News and Lobste.rs
|
||||||
bind ;c hint -Jc [class*="expand"],[class="togg"],[class="comment_folder"]
|
bind ;c hint -Jc [class*="expand"],[class="togg"],[class="comment_folder"]
|
||||||
|
|
||||||
|
|
|
||||||
9
nyx
9
nyx
|
|
@ -16,6 +16,13 @@ build() {
|
||||||
nix build -f . deploy.$HOST && ./result $METHOD
|
nix build -f . deploy.$HOST && ./result $METHOD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
nix build -f . hosts.$HOST.config.system.build.toplevel
|
||||||
|
CLOSURE=$(readlink result)
|
||||||
|
nix-store --export $(nix-store -qR ./result) | ssh root@$HOST nix-store --import --store /mnt
|
||||||
|
ssh root@$HOST nixos-install --system $CLOSURE
|
||||||
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
if [ $# -lt 2 ]; then
|
if [ $# -lt 2 ]; then
|
||||||
usage
|
usage
|
||||||
|
|
@ -23,7 +30,7 @@ main() {
|
||||||
CMD=$1
|
CMD=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
"$CMD" "$@"
|
$CMD $@
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue