Files
nixfiles/emmathorpe/home.nix
T

79 lines
1.7 KiB
Nix
Raw Normal View History

2025-05-21 19:53:56 +01:00
{ config, pkgs, inputs, lib, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
enableVteIntegration = true;
autosuggestion.enable = true;
historySubstringSearch.enable = true;
history.append = true;
oh-my-zsh = {
enable = true;
plugins = [ "git" "man" "history-substring-search" ];
theme = "robbyrussell";
};
syntaxHighlighting.enable = true;
initContent = lib.mkOrder 1500 ''
2025-05-29 17:05:38 +01:00
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
exec sway
fi
if [ "$SSH_CLIENT" ] || [ "$SSH_TTY" ]; then
export PS1=%M\ $PS1
fi
'';
2025-05-21 19:53:56 +01:00
envExtra = ''
alias cls=clear
2025-05-29 17:05:38 +01:00
'';
2025-05-21 19:53:56 +01:00
};
programs.tmux = {
enable = true;
reverseSplit = true;
terminal = "tmux-direct";
newSession = true;
keyMode = "vi";
historyLimit = 50000;
extraConfig = ''
# Enable mouse support
set -g mouse on
# Set pane navigation
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
'';
};
home.stateVersion = "25.05";
home.pointerCursor = {
2025-05-29 17:05:38 +01:00
gtk.enable = true;
x11 = {
enable = true;
defaultCursor = "Adwaita";
};
package = pkgs.adwaita-icon-theme;
name = "Adwaita";
size = 24;
2025-05-21 19:53:56 +01:00
};
home.packages = [
pkgs.element-desktop
];
home.sessionVariables = {
MOZ_USE_XINPUT2 = "1";
2025-05-29 17:05:38 +01:00
# only needed for Sway
XDG_CURRENT_DESKTOP = "sway";
2025-05-29 12:56:38 +01:00
};
programs.vim = {
enable = true;
2025-05-29 17:05:38 +01:00
defaultEditor = true;
plugins = with pkgs.vimPlugins; [ nerdtree ale vim-fugitive vim-indent-guides ];
settings = {
expandtab = false;
tabstop = 2;
shiftwidth = 2;
};
extraConfig = ''
let g:indent_guides_enable_on_vim_startup = 1
'';
2025-05-21 19:53:56 +01:00
};
}