Fix invalid Home Manager options in tmux, shell, and git modules
This commit is contained in:
@@ -3,21 +3,20 @@
|
|||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Elias Kohout";
|
|
||||||
userEmail = "elias@kohout.de";
|
|
||||||
|
|
||||||
extraConfig = {
|
settings = {
|
||||||
|
user.name = "Elias Kohout";
|
||||||
|
user.email = "elias@kohout.de";
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
pull.rebase = true;
|
pull.rebase = true;
|
||||||
rebase.autoStash = true;
|
rebase.autoStash = true;
|
||||||
};
|
alias = {
|
||||||
|
|
||||||
aliases = {
|
|
||||||
unstage = "reset HEAD --";
|
unstage = "reset HEAD --";
|
||||||
last = "log -1 HEAD";
|
last = "log -1 HEAD";
|
||||||
visual = "log --graph --oneline --all";
|
visual = "log --graph --oneline --all";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# GPG key signing
|
# GPG key signing
|
||||||
programs.gpg.enable = true;
|
programs.gpg.enable = true;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dotDir = ".config/zsh";
|
dotDir = "${config.xdg.configHome}/zsh";
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
@@ -17,9 +17,7 @@
|
|||||||
initExtra = ''
|
initExtra = ''
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
bindkey '^S' history-incremental-search-forward
|
bindkey '^S' history-incremental-search-forward
|
||||||
'';
|
|
||||||
|
|
||||||
promptInit = ''
|
|
||||||
autoload -Uz vcs_info
|
autoload -Uz vcs_info
|
||||||
precmd() { vcs_info }
|
precmd() { vcs_info }
|
||||||
zstyle ':vcs_info:git:*' formats '%b'
|
zstyle ':vcs_info:git:*' formats '%b'
|
||||||
|
|||||||
@@ -4,98 +4,59 @@
|
|||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Shell and terminal
|
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
shell = "${pkgs.zsh}/bin/zsh";
|
||||||
terminal = "tmux-256color";
|
terminal = "tmux-256color";
|
||||||
terminalOverrides = [ "*256col*:Tc" ];
|
|
||||||
|
|
||||||
# Indexing
|
|
||||||
baseIndex = 1;
|
baseIndex = 1;
|
||||||
paneBaseIndex = 1;
|
|
||||||
renumberWindows = true;
|
|
||||||
|
|
||||||
# Mouse and clipboard
|
|
||||||
mouse = false;
|
|
||||||
setClipboard = true;
|
|
||||||
|
|
||||||
# History
|
|
||||||
historyLimit = 50000;
|
historyLimit = 50000;
|
||||||
|
mouse = false;
|
||||||
|
keyMode = "vi";
|
||||||
|
clock24 = true;
|
||||||
|
focusEvents = true;
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
# Indexing
|
||||||
|
set -g pane-base-index 1
|
||||||
|
set -g renumber-windows on
|
||||||
|
|
||||||
|
# Terminal overrides
|
||||||
|
set -ga terminal-overrides ",*256col*:Tc"
|
||||||
|
|
||||||
|
# Pane borders
|
||||||
|
set -g pane-border-lines heavy
|
||||||
|
set -g pane-active-border-style fg=brightred
|
||||||
|
set -g pane-border-style fg=colour238
|
||||||
|
|
||||||
# Status bar
|
# Status bar
|
||||||
statusInterval = 1;
|
set -g status-interval 1
|
||||||
statusPosition = "top";
|
set -g status-position top
|
||||||
statusJustify = "left";
|
set -g status-justify left
|
||||||
statusStyle = "bg=black,fg=brightwhite";
|
set -g status-style bg=black,fg=brightwhite
|
||||||
statusLeft = "#[bg=colour236,fg=brightwhite]#{?session_path, #(basename #{session_path}) ,}";
|
set -g status-left "#[bg=colour236,fg=brightwhite]#{?session_path, #(basename #{session_path}) ,}"
|
||||||
statusRight = "#[bg=colour236,fg=brightwhite] #H #[bg=colour235,fg=brightwhite] %H:%M:%S ";
|
set -g status-right "#[bg=colour236,fg=brightwhite] #H #[bg=colour235,fg=brightwhite] %H:%M:%S "
|
||||||
statusLeftLength = 100;
|
set -g status-left-length 100
|
||||||
statusRightLength = 100;
|
set -g status-right-length 100
|
||||||
|
|
||||||
# Window styling
|
# Window styling
|
||||||
windowStatusFormat = " #[fg=white]#I:#[fg=white]#W#{?window_flags,#F,} ";
|
set -g window-status-format " #[fg=white]#I:#[fg=white]#W#{?window_flags,#F,} "
|
||||||
windowStatusCurrentFormat = "#[bg=colour235,fg=brightred,bold] #I:#W#{?window_flags,#F,} ";
|
set -g window-status-current-format "#[bg=colour235,fg=brightred,bold] #I:#W#{?window_flags,#F,} "
|
||||||
windowStatusSeparator = "";
|
set -g window-status-separator ""
|
||||||
|
|
||||||
# Pane styling
|
|
||||||
paneActiveBorderStyle = "fg=brightred";
|
|
||||||
paneBorderStyle = "fg=colour238";
|
|
||||||
|
|
||||||
# Message styling
|
# Message styling
|
||||||
messageStyle = "bg=colour236,fg=brightwhite";
|
set -g message-style bg=colour236,fg=brightwhite
|
||||||
messageCommandStyle = "bg=colour236,fg=brightwhite";
|
set -g message-command-style bg=colour236,fg=brightwhite
|
||||||
|
|
||||||
# Mode and clock
|
# Mode styling
|
||||||
modeStyle = "bg=brightred,fg=black";
|
set -g mode-style bg=brightred,fg=black
|
||||||
clockModeColour = "brightred";
|
set -g clock-mode-colour brightred
|
||||||
clockModeStyle = 24;
|
|
||||||
|
|
||||||
# Copy mode
|
|
||||||
copyMode = {
|
|
||||||
vi = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Keybindings
|
# Keybindings
|
||||||
keyBindings = [
|
bind y copy-mode
|
||||||
{
|
bind -r h select-pane -L
|
||||||
key = "y";
|
bind -r j select-pane -D
|
||||||
command = "copy-mode";
|
bind -r k select-pane -U
|
||||||
}
|
bind -r l select-pane -R
|
||||||
{
|
bind -r r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf reloaded"
|
||||||
key = "h";
|
bind q display-popup -E -w 60% -h 60% -d '#{session_path}' 'nvim quicknote.md'
|
||||||
command = "select-pane -L";
|
|
||||||
options = { repeat = true; };
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "j";
|
|
||||||
command = "select-pane -D";
|
|
||||||
options = { repeat = true; };
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "k";
|
|
||||||
command = "select-pane -U";
|
|
||||||
options = { repeat = true; };
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "l";
|
|
||||||
command = "select-pane -R";
|
|
||||||
options = { repeat = true; };
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "r";
|
|
||||||
command = "source-file ~/.config/tmux/tmux.conf \\; display-message \"tmux.conf reloaded\"";
|
|
||||||
options = { repeat = true; };
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "q";
|
|
||||||
command = "display-popup -E -w 60% -h 60% -d '#{session_path}' 'nvim quicknote.md'";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# Additional settings via extraConfig
|
|
||||||
extraConfig = ''
|
|
||||||
set -ga terminal-overrides ",*256col*:Tc"
|
|
||||||
set -g focus-events on
|
|
||||||
set -g pane-border-lines heavy
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user