From dccb037942397584468f165bca0ce369551643a6 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Mon, 17 Jun 2024 14:04:09 +0100 Subject: [PATCH 1/2] [yevaud] Set up tmux --- home/tmux.nix | 33 +++++++++++++++++++++++++++++++++ hosts/yevaud/home.nix | 1 + 2 files changed, 34 insertions(+) create mode 100644 home/tmux.nix diff --git a/home/tmux.nix b/home/tmux.nix new file mode 100644 index 0000000..407a517 --- /dev/null +++ b/home/tmux.nix @@ -0,0 +1,33 @@ +{ config, lib, pkgs, ... }: + +{ + # Derived from https://github.com/srid/nixos-config/blob/master/home/tmux.nix + + programs.tmux = { + enable = true; + clock24 = true; + shortcut = "a"; # `screen` muscle memory compatibility + baseIndex = 1; # this is a UI, 0-indexing is not appropriate, fight me + newSession = true; # skip the manual step + escapeTime = 0; # otherwise I keep reflexively hammering Esc + secureSocket = false; # make sessions survive user logout + + plugins = with pkgs; [ + tmuxPlugins.better-mouse-mode + ]; + mouse = true; + + extraConfig = '' + # https://old.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/ + set -g default-terminal "xterm-256color" + set -ga terminal-overrides ",*256col*:Tc" + set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' + set-environment -g COLORTERM "truecolor" + + # easy-to-remember split pane commands + bind | split-window -h -c "#{pane_current_path}" + bind - split-window -v -c "#{pane_current_path}" + bind c new-window -c "#{pane_current_path}" + ''; + }; +} diff --git a/hosts/yevaud/home.nix b/hosts/yevaud/home.nix index de2439b..a79e622 100644 --- a/hosts/yevaud/home.nix +++ b/hosts/yevaud/home.nix @@ -4,6 +4,7 @@ home-manager.users.qenya = { pkgs, ... }: { imports = [ ../../home/cli.nix + ../../home/tmux.nix ]; home.stateVersion = "23.11"; From 3d75d0614d8e5eed36a138156b9b88f3f3b52d0e Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Mon, 17 Jun 2024 20:47:15 +0100 Subject: [PATCH 2/2] npins update --- npins/sources.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/npins/sources.json b/npins/sources.json index f0bb28a..8212066 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -8,9 +8,9 @@ "repo": "home-manager" }, "branch": "release-24.05", - "revision": "a631666f5ec18271e86a5cde998cba68c33d9ac6", - "url": "https://github.com/nix-community/home-manager/archive/a631666f5ec18271e86a5cde998cba68c33d9ac6.tar.gz", - "hash": "13b22rkylwg4jwqmhyypkyjzm4algk5y43kfwwnb96wxmrqrplxc" + "revision": "a1fddf0967c33754271761d91a3d921772b30d0e", + "url": "https://github.com/nix-community/home-manager/archive/a1fddf0967c33754271761d91a3d921772b30d0e.tar.gz", + "hash": "1vvrrk14vrhb6drj3fy8snly0sf24x3402ykb9q5j1gy99vvqqq6" }, "nix-vscode-extensions": { "type": "Git", @@ -20,15 +20,15 @@ "repo": "nix-vscode-extensions" }, "branch": "master", - "revision": "1ae16af500525f1ca1b3295f5ee4e2b1b26f3004", - "url": "https://github.com/nix-community/nix-vscode-extensions/archive/1ae16af500525f1ca1b3295f5ee4e2b1b26f3004.tar.gz", - "hash": "0rf225qaim5kgw7qkm7iq2jzjqlanipx8sjc4k6w84lqi2rc2aga" + "revision": "b601ea2daf217f0e9a5247aa90c1cdc3ab169c41", + "url": "https://github.com/nix-community/nix-vscode-extensions/archive/b601ea2daf217f0e9a5247aa90c1cdc3ab169c41.tar.gz", + "hash": "1mfsmlbykx2w0rlc6ax4gf926c499zsfvsq64jb7zc6d2fkqnwf6" }, "nixpkgs": { "type": "Channel", "name": "nixos-24.05", - "url": "https://releases.nixos.org/nixos/24.05/nixos-24.05.675.805a384895c6/nixexprs.tar.xz", - "hash": "1lgx2ln363mhdv1hnmnpiryhg3fpkpgzq50k1gnscp24sm5rskv2" + "url": "https://releases.nixos.org/nixos/24.05/nixos-24.05.1503.752c634c09ce/nixexprs.tar.xz", + "hash": "0rl95c97s2ad1sg7h8dxdsiarmacbi38gwmcy9a9a4blsaa43ahm" } }, "version": 3