51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{config, pkgs, ...}:
|
|
{
|
|
home.packages = with pkgs; [
|
|
starship
|
|
];
|
|
xdg.configFile."starship.toml".source = ./starship.toml;
|
|
|
|
programs.zsh = {
|
|
enable = true;
|
|
initContent=''
|
|
source ${./.zshrc}
|
|
'';
|
|
shellAliases = {
|
|
sudo = "doas";
|
|
};
|
|
};
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
|
|
config = {
|
|
global = {
|
|
hide_env_diff = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
xdg.configFile."zsh/zsh-syntax-highlighting".source = builtins.fetchGit {
|
|
url = "https://forge.alexselimov.com/aselimov/zsh-syntax-highlighting.git";
|
|
rev = "2fc57d63067c18b1100ecdbf684fa5baf49459d1";
|
|
};
|
|
|
|
xdg.configFile."zsh/zsh-history-substring-search".source = builtins.fetchGit {
|
|
url = "https://forge.alexselimov.com/aselimov/zsh-history-substring-search.git";
|
|
rev = "14c8d2e0ffaee98f2df9850b19944f32546fdea5";
|
|
};
|
|
|
|
xdg.configFile."zsh/zsh-autosuggestions".source = builtins.fetchGit {
|
|
url = "https://forge.alexselimov.com/aselimov/zsh-autosuggestions.git";
|
|
rev = "85919cd1ffa7d2d5412f6d3fe437ebdbeeec4fc5";
|
|
};
|
|
|
|
programs.tmux.enable = true;
|
|
xdg.configFile."tmux/tmux.conf".source = ./.tmux.conf;
|
|
xdg.configFile."tmux/themes/zenwritten-light.conf".text = ''
|
|
set -g window-style 'bg=gray'
|
|
'';
|
|
xdg.configFile."tmux/themes/zenwritten-dark.conf".text = ''
|
|
set -g window-style 'bg=brightblack'
|
|
'';
|
|
}
|