aboutsummaryrefslogtreecommitdiff
path: root/home/mun/programs/zsh.nix
blob: 4c27d9fd533da34d4b8df4f311e63db11c1c1fb8 (plain)
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
{...}: {
  programs.zsh = {
    enable = true;
    syntaxHighlighting.enable = true;

    shellAliases = {
      ll = "ls -l";
      rebuild = "sudo nixos-rebuild switch";
      edit = "sudo vi /etc/nixos/configuration.nix";
    };

    history.size = 10000;

    oh-my-zsh = {
      enable = true;
      plugins = ["git"];
      theme = "simple";
    };

    initContent = ''
      fastfetch --config examples/9.jsonc
       export GPG_TTY=$(tty)
       SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket
    '';

    initExtra = ''
      export SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket
    '';
  };
}