Find commands for tridactyl. WIP subcommand.

WIP subcommand for installing a new host.
This commit is contained in:
kat witch 2021-02-26 08:10:34 +00:00
parent bede674088
commit 6727a8c014
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 14 additions and 1 deletions

View file

@ -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
View file

@ -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
} }