summaryrefslogtreecommitdiff
path: root/users/seth/shell/default.nix
blob: fd9f3a0313f3d2c3e2c9c06340c3b58d9913f1d7 (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
31
32
33
34
35
{config, ...}: {
  imports = [
    ./bash.nix
    ./fish.nix
  ];

  programs.starship = {
    enable = true;
    enableFishIntegration = true;
  };

  xdg.configFile."starship.toml".source = ./starship.toml;

  home = {
    sessionVariables = {
      EDITOR = "nvim";
      VISUAL = "$EDITOR";
      GPG_TTY = "$(tty)";
      CARGO_HOME = "${config.xdg.dataHome}/cargo";
      RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
      LESSHISTFILE = "${config.xdg.stateHome}/less/history";
      NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
    };

    shellAliases = {
      ls = "exa --icons";
      la = "ls -a";
      diff = "diff --color=auto";
      g = "git";
      gs = "g status";
      nixsw = "sudo nixos-rebuild switch";
      nixup = "nixsw --upgrade";
    };
  };
}