From 6727a8c014b4bcb672c81ebfa70341daad4d95fe Mon Sep 17 00:00:00 2001 From: kat witch Date: Fri, 26 Feb 2021 08:10:34 +0000 Subject: [PATCH] Find commands for tridactyl. WIP subcommand. WIP subcommand for installing a new host. --- config/users/kat/firefox/tridactylrc | 6 ++++++ nyx | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/users/kat/firefox/tridactylrc b/config/users/kat/firefox/tridactylrc index a19d1212..10c6ea85 100644 --- a/config/users/kat/firefox/tridactylrc +++ b/config/users/kat/firefox/tridactylrc @@ -32,6 +32,12 @@ " Binds " +bind / fillcmdline find +bind ? fillcmdline find -? +bind n findnext 1 +bind N findnext -1 +bind , nohlsearc + " Comment toggler for Reddit, Hacker News and Lobste.rs bind ;c hint -Jc [class*="expand"],[class="togg"],[class="comment_folder"] diff --git a/nyx b/nyx index 7a179bbb..2109a5dd 100755 --- a/nyx +++ b/nyx @@ -16,6 +16,13 @@ build() { 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() { if [ $# -lt 2 ]; then usage @@ -23,7 +30,7 @@ main() { CMD=$1 shift - "$CMD" "$@" + $CMD $@ fi }