Compare commits
2 commits
785184c7ef
...
3d75d0614d
Author | SHA1 | Date | |
---|---|---|---|
|
3d75d0614d | ||
|
dccb037942 |
33
home/tmux.nix
Normal file
33
home/tmux.nix
Normal file
|
@ -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}"
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
home-manager.users.qenya = { pkgs, ... }: {
|
||||
imports = [
|
||||
../../home/cli.nix
|
||||
../../home/tmux.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue