Compare commits

..

No commits in common. "3d75d0614d8e5eed36a138156b9b88f3f3b52d0e" and "785184c7efc944466c48af709094df308f411f94" have entirely different histories.

3 changed files with 8 additions and 42 deletions

View file

@ -1,33 +0,0 @@
{ 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}"
'';
};
}

View file

@ -4,7 +4,6 @@
home-manager.users.qenya = { pkgs, ... }: { home-manager.users.qenya = { pkgs, ... }: {
imports = [ imports = [
../../home/cli.nix ../../home/cli.nix
../../home/tmux.nix
]; ];
home.stateVersion = "23.11"; home.stateVersion = "23.11";

View file

@ -8,9 +8,9 @@
"repo": "home-manager" "repo": "home-manager"
}, },
"branch": "release-24.05", "branch": "release-24.05",
"revision": "a1fddf0967c33754271761d91a3d921772b30d0e", "revision": "a631666f5ec18271e86a5cde998cba68c33d9ac6",
"url": "https://github.com/nix-community/home-manager/archive/a1fddf0967c33754271761d91a3d921772b30d0e.tar.gz", "url": "https://github.com/nix-community/home-manager/archive/a631666f5ec18271e86a5cde998cba68c33d9ac6.tar.gz",
"hash": "1vvrrk14vrhb6drj3fy8snly0sf24x3402ykb9q5j1gy99vvqqq6" "hash": "13b22rkylwg4jwqmhyypkyjzm4algk5y43kfwwnb96wxmrqrplxc"
}, },
"nix-vscode-extensions": { "nix-vscode-extensions": {
"type": "Git", "type": "Git",
@ -20,15 +20,15 @@
"repo": "nix-vscode-extensions" "repo": "nix-vscode-extensions"
}, },
"branch": "master", "branch": "master",
"revision": "b601ea2daf217f0e9a5247aa90c1cdc3ab169c41", "revision": "1ae16af500525f1ca1b3295f5ee4e2b1b26f3004",
"url": "https://github.com/nix-community/nix-vscode-extensions/archive/b601ea2daf217f0e9a5247aa90c1cdc3ab169c41.tar.gz", "url": "https://github.com/nix-community/nix-vscode-extensions/archive/1ae16af500525f1ca1b3295f5ee4e2b1b26f3004.tar.gz",
"hash": "1mfsmlbykx2w0rlc6ax4gf926c499zsfvsq64jb7zc6d2fkqnwf6" "hash": "0rf225qaim5kgw7qkm7iq2jzjqlanipx8sjc4k6w84lqi2rc2aga"
}, },
"nixpkgs": { "nixpkgs": {
"type": "Channel", "type": "Channel",
"name": "nixos-24.05", "name": "nixos-24.05",
"url": "https://releases.nixos.org/nixos/24.05/nixos-24.05.1503.752c634c09ce/nixexprs.tar.xz", "url": "https://releases.nixos.org/nixos/24.05/nixos-24.05.675.805a384895c6/nixexprs.tar.xz",
"hash": "0rl95c97s2ad1sg7h8dxdsiarmacbi38gwmcy9a9a4blsaa43ahm" "hash": "1lgx2ln363mhdv1hnmnpiryhg3fpkpgzq50k1gnscp24sm5rskv2"
} }
}, },
"version": 3 "version": 3