summaryrefslogtreecommitdiffstats
path: root/modules/shell/zsh/default.nix
blob: 471bc57845fbe4f7269ed067b60887e81ce30e15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ config, pkgs, user, ... }:
{
    config = {
        programs.zsh.enable = true;
        users.defaultUserShell = pkgs.zsh;
    };

    config.home-manager.users.${user} = {
        home.packages = with pkgs; [
            inotify-tools
        ];
        
        programs.zsh = {
            enable = true;
            shellAliases = {
                ll = "ls -l";
                unixos = "sudo nixos-rebuild switch --flake /etc/nixos";
            };
            history = {
                size = 10000;
                ignoreDups = true;
            };
        
            oh-my-zsh = {
                enable = true;
                plugins = [ "git" "thefuck" "pass" ];
                theme = "dst";
            };
            syntaxHighlighting.enable = true;
        };
    };
}