summaryrefslogtreecommitdiff
path: root/home/config/environment.nix
blob: e6c74712871644706ac3cf65c33d2a741c25fc35 (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
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
65
66
{ config, pkgs, ... }:

{
  home.packages = with pkgs;
    [
      # Various
      evince
      gimp
      gnupg
      imagemagick
      ghostscript
      keepassxc
      moreutils
      pavucontrol
      transmission-gtk
      vlc
      zotero
    ] ++ [
      # Social
      signal-desktop
      thunderbird
    ] ++ [
      # Fonts
      material-design-icons
      roboto
    ] ++ [
      # Programming languages
      python3Minimal
    ] ++ (with texlive;
      [
        # Tex
        # Uncomment when full disk available
        # combined.scheme-full
      ]);

  home.wallpaper = ./dotfiles/background-image;

  programs.bash = {
    enable = true;
    shellAliases = {
      amimullvad = "curl -Ls https://am.i.mullvad.net/connected";
      nixos-update-config =
        "sudo cp -rf ~/documents/nix/latitude-7490/nixos/ /etc/";
      rm = "rm -f";
      ssh = "TERM=xterm-256color ssh";
      mkenv = ''
        cp ~/documents/nix/shells/shell.nix . ;
        echo "use_nix" >> .envrc ;
        direnv allow ;
        $EDITOR shell.nix ;
      '';
      fftmp = "firefox --profile $(mktemp -d)";
      edit = "$EDITOR";
    };
    sessionVariables = {
      CDPATH = "~";
      EDITOR = "emacsclient -c";
      BROWSER = "firefox";
    };
  };

  programs.direnv = {
    enable = true;
    nix-direnv.enable = true;
  };
}