summaryrefslogtreecommitdiff
path: root/home/environ.nix
blob: 5b20f51e99ba3603127b35928d4daef7ad736bbf (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
{ config, lib, pkgs, ... }:
with lib; {
  config = {
    xdg.enable = true;

    systemd.user.tmpfiles.rules = [
      "d %t/vtmp 0700"
    ];

    home.file = let
      symlink = path: { source = config.lib.file.mkOutOfStoreSymlink path; };
      #TODO: No sirve, creo que por readline
      devNull = symlink "/dev/null";
    in {
      "vtmp" = symlink "/run/user/1000/vtmp";
      ".calc_history" = devNull;
      ".units_history" = devNull;
    };

    programs = {
      zsh = {
        enable = true;
        enableAutosuggestions = true;
        enableSyntaxHighlighting = true;
        initExtra = import ./zshrc.nix pkgs;
      };

      git = {
        enable = true;
        userName = "Alejandro Soto";
        userEmail = "alejandro@34project.org";
      };

      neovim = {
        enable = true;
        withRuby = false;
        withPython3 = false;

        extraConfig = ''
          set number         " Enable line numbering
          set relativenumber " Enable relative line numbering
          set tabstop=4      " Set tap stop to 4
          set shiftwidth=4   " Set shift width to 4 (same as tabstop)
          set viminfo=       " No tracking
        '';
      };
    };
  };
}