screeps and home-manager.sharedModules

This commit is contained in:
Ingolf Wagner 2023-07-07 02:48:44 +02:00
commit f770305273
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
6 changed files with 120 additions and 81 deletions
nixos/components/terminal

View file

@ -8,19 +8,44 @@ with lib;
config = mkIf (config.components.terminal.zsh.enable) {
home-manager.users =
let
zshConfig = {
programs.zsh = {
enable = true;
defaultKeymap = "viins";
};
};
in
home-manager.sharedModules = [
{
mainUser = zshConfig;
root = zshConfig;
};
programs.zsh = {
enable = true;
defaultKeymap = "viins";
};
# a better cat
programs.bat = {
enable = true;
config.theme = "gruvbox-light";
};
home.shellAliases.cat = "${pkgs.bat}/bin/bat";
# a better ls
programs.exa = {
enable = true;
enableAliases = true;
};
home.shellAliases.llt = "${pkgs.exa}/bin/exa -a --tree";
# use z instead of cd
# use zi to fuzzy search through all registered directories
programs.zoxide = {
enable = true;
enableZshIntegration = true;
};
# provide better `Ctrl+r` command in terminal
programs.mcfly = {
enable = true;
keyScheme = "vim";
fuzzySearchFactor = 3;
enableZshIntegration = true;
enableBashIntegration = true;
};
}
];
programs.zsh = {