diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index e00e4e4..a8821f7 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -284,7 +284,7 @@ # Or disable the firewall altogether. # networking.firewall.enable = false; security.pam.services.hyprlock = {}; - networking.firewall.checkReversePath = false; + networking.firewall.checkReversePath = false; networking.wg-quick.interfaces = { home = { address = ["10.154.125.2/24"]; diff --git a/hosts/default/home.nix b/hosts/default/home.nix index 415fc95..72bded3 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -36,9 +36,15 @@ # # You can also create simple shell scripts directly inside your # # configuration. For example, this adds a command 'my-hello' to your # # environment: - # (pkgs.writeShellScriptBin "my-hello" '' - # echo "Hello, ${config.home.username}!" - # '') + (pkgs.writeShellScriptBin "mux-sessionizer" '' + session=$(tmuxinator list | tail -n +2 | tr -s '[:space:]' '\n' | fzf) + + if [ -n "$session" ]; then + tmuxinator start "$session" + else + echo "No session selected" + fi + '') ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix index 3930d93..9cede44 100644 --- a/modules/home-manager/zsh.nix +++ b/modules/home-manager/zsh.nix @@ -14,10 +14,17 @@ cat = "bat"; cd = "z"; }; - initExtra = "fastfetch\n - eval \"$(zoxide init zsh)\""; + initExtra = '' + bindkey -s ^f "mux-sessionizer\n" - history.size = 10000; + fastfetch + eval "$(zoxide init zsh)" + ''; + + history = { + size = 10000; + append = true; + }; autosuggestion.enable = true; syntaxHighlighting.enable = true;