aboutsummaryrefslogtreecommitdiffstats
path: root/users/hanna/configs/zsh.nix
blob: 0eb252bb8efced2159002ea61aa4a5cdd378e4b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, pkgs, ... }:

{
  imports = [
    ./zsh/environment.nix
    ./zsh/completion.nix
    ./zsh/plugins.nix
  ];

  files.".zshrc" = {
    executable = true;

    text = ''
      source "${config.xdg.config.directory}/zsh/environment"
      source "${config.xdg.config.directory}/zsh/completion"
      source "${config.xdg.config.directory}/zsh/plugins"
      eval "$(${pkgs.starship}/bin/starship init zsh)"
      eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
    '';
  };
}