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

63 lines
1.8 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
gopass-jsonapi
mpv
mu
neovim
];
programs.tmux = {
enable = true;
terminal = "screen-256color";
2022-11-07 21:11:09 +00:00
prefix = "C-x";
2022-11-11 07:41:01 +00:00
plugins = [ pkgs.tmuxPlugins.copycat
pkgs.tmuxPlugins.extrakto
pkgs.tmuxPlugins.fzf-tmux-url
2022-12-02 20:49:00 +00:00
pkgs.tmuxPlugins.jump
2022-11-11 07:41:01 +00:00
pkgs.tmuxPlugins.open
pkgs.tmuxPlugins.tmux-thumbs
];
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-11-11 07:41:01 +00:00
set -g @open-S 'https://www.duckduckgo.com/?q='
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-10-22 13:37:23 +00:00
'';
};
}