diff options
| -rw-r--r-- | home.nix | 4 | ||||
| -rw-r--r-- | home/ghostty.nix | 3 | ||||
| -rw-r--r-- | home/helix.nix | 1 | ||||
| -rw-r--r-- | home/tmux.nix | 10 | ||||
| -rw-r--r-- | home/vcs.nix | 2 |
5 files changed, 15 insertions, 5 deletions
@@ -1,10 +1,12 @@ { lib, + osConfig ? null, ... }: let - detectedHostname = builtins.getEnv "HOSTNAME"; + detectedHostname = + if osConfig != null then osConfig.networking.hostName else builtins.getEnv "HOSTNAME"; detectedUsername = builtins.getEnv "USER"; detectedHome = let diff --git a/home/ghostty.nix b/home/ghostty.nix index b954f42..fbdd5c3 100644 --- a/home/ghostty.nix +++ b/home/ghostty.nix @@ -1,6 +1,8 @@ { pkgs, ... }: { + home.packages = [ pkgs.ghostty-bin.terminfo ]; + programs.ghostty = { enable = true; @@ -8,6 +10,7 @@ enableFishIntegration = true; settings = { + env = [ "TERMINFO=${pkgs.ghostty-bin.terminfo}/share/terminfo" ]; clipboard-read = "allow"; clipboard-write = "allow"; copy-on-select = true; diff --git a/home/helix.nix b/home/helix.nix index 1fe17fb..8a46556 100644 --- a/home/helix.nix +++ b/home/helix.nix @@ -28,7 +28,6 @@ in settings = { theme = "grace_rose_pine"; editor = { - clipboard-provider = "termcode"; bufferline = "multiple"; color-modes = true; default-yank-register = "+"; diff --git a/home/tmux.nix b/home/tmux.nix index 3c3a5d1..f6c59da 100644 --- a/home/tmux.nix +++ b/home/tmux.nix @@ -6,7 +6,7 @@ mouse = true; keyMode = "vi"; baseIndex = 1; - prefix = "C-\\"; + prefix = "C-b"; terminal = "xterm-ghostty"; plugins = with pkgs.tmuxPlugins; [ sensible @@ -27,7 +27,8 @@ ]; extraConfig = '' set -g status-position top - set -g set-clipboard on + set -s set-clipboard on + set -s get-clipboard both set -g set-titles on set -g set-titles-string "#{session_name}" setw -g pane-base-index 1 @@ -35,6 +36,11 @@ set -as terminal-features ",xterm-ghostty:hyperlinks" set -ga terminal-overrides ",xterm-ghostty:Tc" + unbind C-b + set -g prefix C-\\ + bind -N "Send the prefix key through to the application" C-\\ send-prefix + bind -N "Refresh system clipboard via OSC 52" Y refresh-client -l + bind v split-window -h -c "#{pane_current_path}" bind b split-window -v -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" diff --git a/home/vcs.nix b/home/vcs.nix index 4778311..4855b94 100644 --- a/home/vcs.nix +++ b/home/vcs.nix @@ -15,7 +15,7 @@ email = "grace_yoder@outlook.com"; }; signing = { - sign-all = true; + behavior = "own"; backend = "ssh"; key = "~/.ssh/id_ed25519"; }; |
