about summary refs log tree commit diff
path: root/modules/shell/default.nix
blob: 47c4df19c7b86394d7e321cd7bc04e3de9de0e65 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{ pkgs, ... }:

{
  imports = [
    ./cargo ./cmake ./git ./kakoune ./less ./lynx ./pass ./screen
    ./tmux ./zsh
  ];

  environment.systemPackages = with pkgs; [
    (aspellWithDicts (dicts: with dicts; [ en en-computers en-science eo ]))
    bind.dnsutils
    binutils
    coreutils-prefixed
    curl
    direnv
    execline
    file
    finger_bsd
    ffsend
    fzf
    gdb
    gnused
    gotop
    htop
    httpie
    jq
    libhugetlbfs
    lsof
    moreutils
    ncdu
    neovim
    nix-top
    nmap
    openssh
    pciutils
    pv
    ranger
    silver-searcher
    traceroute
    tree
    units
    unixtools.watch
    unzip
    wget
    whois

    (busybox.override {
      enableMinimal = true;
      extraConfig = ''
        CONFIG_PSTREE y
      '';
    })
  ] ++ lib.optional stdenv.isDarwin pinentry_mac;

  environment.variables.CLICOLOR = "1";
  environment.variables.EDITOR = "kak";
  environment.variables.EMAIL = "hi@alyssa.is";
  environment.variables.GOPATH = "$XDG_DATA_HOME/go";

  security.sudo.package = pkgs.sudo.override { withInsults = true; };
  security.sudo.extraConfig = ''
    Defaults insults
  '';
}