diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-08-25 20:31:22 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-08-25 20:33:12 -0600 |
| commit | 4b0efbd66f36634c7ddeef6308a528838c923f68 (patch) | |
| tree | 8fe81cd8ed82a66ff4bb7d8bba024e0bcd631ea4 /home/environ.nix | |
| parent | 82766c2755693f325cc25e2e7585b1648502f636 (diff) | |
home: split up default.nix
Diffstat (limited to 'home/environ.nix')
| -rw-r--r-- | home/environ.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/home/environ.nix b/home/environ.nix new file mode 100644 index 0000000..5b20f51 --- /dev/null +++ b/home/environ.nix @@ -0,0 +1,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 + ''; + }; + }; + }; +} |
