Compare commits

..

No commits in common. "3a18c8a9209c607a8532600e4866dcd613899778" and "45c94a4aff0a180af0183de0af24bcbbdc1013f5" have entirely different histories.

7 changed files with 38 additions and 35 deletions

View file

@ -46,9 +46,8 @@
imports = [
nur.hmModules.nur
./modules/bash
./modules/git.nix
./modules/git
./modules/neovim
./modules/tmux.nix
./hostvars.nix
({ osConfig, ... }: {

View file

@ -22,4 +22,28 @@
];
};
};
programs = {
# TODO: install plugins through nix
tmux = {
enable = true;
keyMode = "vi";
terminal = "screen-256color";
newSession = true;
historyLimit = 30000;
extraConfig = ''
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
set -g mouse on
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
set -g @plugin 'dracula/tmux'
run 'bash -c "$HOME/.tmux/plugins/tpm/tpm ||
${pkgs.git}/bin/git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm &&
$HOME/.tmux/plugins/tpm/tpm"'
'';
};
};
}

View file

@ -1,24 +0,0 @@
{ pkgs, ... }: {
programs = {
tmux = {
enable = true;
keyMode = "vi";
terminal = "screen-256color";
newSession = true;
historyLimit = 30000;
plugins = with pkgs.tmuxPlugins; [
dracula
];
extraConfig = ''
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
set -g mouse on
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
'';
};
};
}

View file

@ -253,11 +253,11 @@
]
},
"locked": {
"lastModified": 1697622055,
"narHash": "sha256-t9rwzjlfgCnXDFGH3wsooYfAOA+XqQmgTojhzuNafZ4=",
"lastModified": 1697611555,
"narHash": "sha256-8nYMduRQfGSQJr2cDMyodsuGlRcJAy0Ko8K4KkjurP8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "84fa81c7acb018c3c5a504dcefbc28a182c933c2",
"rev": "05649393ac1f34980a5cf6a6e89de77626c9182b",
"type": "github"
},
"original": {
@ -601,11 +601,11 @@
},
"nur": {
"locked": {
"lastModified": 1697646416,
"narHash": "sha256-rWB2uADZlVbKlh+RN54+zo2A3P1iBi/FSxRDUtNbSwI=",
"lastModified": 1697637981,
"narHash": "sha256-BReinxzdLksrjXkCZWqHZSEKd4/vWuNwgzmfjKprRxo=",
"owner": "nix-community",
"repo": "NUR",
"rev": "32ef23c823f865d09b34076f2b133ce45464a66b",
"rev": "bc8feb3239c1a4a896fd03ada155d1b8ee8ae38c",
"type": "github"
},
"original": {
@ -621,11 +621,11 @@
]
},
"locked": {
"lastModified": 1697649321,
"narHash": "sha256-GQqnHejmSR+GzM89Pggdo49RAwjb+SqUYSSECIcsCiE=",
"lastModified": 1697475950,
"narHash": "sha256-h5mx54JdCbmrmfqaKYIQBZlqLOgIpIWclPpue4ufHJk=",
"owner": "nix-community",
"repo": "nurl",
"rev": "f69f5601fa0bf459255be66b7c0e310fb3c33abb",
"rev": "1cf9fad61dbcc1f40bb8621b0e3ba3dd0289ec58",
"type": "github"
},
"original": {

View file

@ -28,6 +28,8 @@
"libvirtd"
];
};
# TODO: use hm for tmux
home-manager.users = {
matt = {

View file

@ -31,6 +31,8 @@
"libvirtd"
];
};
# TODO: use hm for tmux
home-manager.users = {
matt = {
imports = [