dotfiles/nix-conf/home/includes/dev-common.nix

75 lines
2.0 KiB
Nix
Raw Normal View History

2022-11-09 20:54:27 +00:00
{ config, pkgs, lib, ... }:
2022-10-22 13:37:23 +00:00
{
imports = [
./common.nix
./clojure.nix
];
home.packages = with pkgs; [
docker
docker-compose
2024-03-28 11:56:27 +00:00
docker-credential-helpers
2023-02-01 07:01:17 +00:00
ffmpeg
2022-10-22 13:37:23 +00:00
gopass-jsonapi
mpv
2023-10-25 08:15:16 +00:00
multimarkdown
2022-10-22 13:37:23 +00:00
neovim
];
programs.tmux = {
enable = true;
terminal = "screen-256color";
2022-11-07 21:11:09 +00:00
prefix = "C-x";
2022-12-03 16:50:07 +00:00
plugins = with pkgs; [
2022-12-08 16:43:02 +00:00
tmuxPlugins.copy-toolkit
2022-12-03 16:50:07 +00:00
tmuxPlugins.copycat
tmuxPlugins.extrakto
2023-01-12 12:12:25 +00:00
tmuxPlugins.fuzzback
2022-12-03 16:50:07 +00:00
tmuxPlugins.fzf-tmux-url
tmuxPlugins.jump
{
plugin = tmuxPlugins.open;
extraConfig = ''
set -g @open-S 'https://www.duckduckgo.com/?q='
'';
}
{
plugin = tmuxPlugins.tmux-thumbs;
extraConfig = ''
set -g @thumbs-reverse enabled
set -g @thumbs-unique enabled
set -g @thumbs-position right
set -g @thumbs-contrast 1
#${lib.optionalString pkgs.stdenv.isLinux "set -g @thumbs-upcase-command 'xargs xdg-open {}'"}
#${lib.optionalString pkgs.stdenv.isDarwin "set -g @thumbs-upcase-command 'xargs open {}'"}
'';
}
2022-11-11 07:41:01 +00:00
];
2022-10-22 13:37:23 +00:00
extraConfig = ''
2022-11-11 07:41:01 +00:00
unbind-key R
bind-key R run-shell ' \
2022-11-09 20:54:27 +00:00
tmux source-file ~/.config/tmux/tmux.conf > /dev/null; \
tmux display-message "Sourced .config/tmux/tmux.conf!"'
2022-11-11 07:41:01 +00:00
2022-11-09 20:54:27 +00:00
bind-key £ split-window -h
2022-11-11 07:41:01 +00:00
2022-10-22 13:37:23 +00:00
set-option -g status-bg '#666666'
set-option -g status-fg '#aaaaaa'
set-option -g status-left-length 50
2022-11-04 12:01:04 +00:00
set-option -g status-right " %a, %b %d - %H:%M "
2022-11-11 07:41:01 +00:00
2022-11-09 20:54:27 +00:00
${lib.optionalString pkgs.stdenv.isLinux ''
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b"
bind-key C-y run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
''}
2022-11-21 16:44:49 +00:00
${lib.optionalString pkgs.stdenv.isDarwin ''
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key C-y run "reattach-to-user-namespace pbpaste | tmux load-buffer - ; tmux paste-buffer"
''}
2022-10-22 13:37:23 +00:00
'';
};
}