{ config, lib, pkgs, ... }: with lib; let symlink = config.lib.file.mkOutOfStoreSymlink; #TODO: No sirve, creo que por readline devNull = symlink "/dev/null"; in { config = { xdg.enable = true; systemd.user.tmpfiles.rules = [ "d %t/vtmp 0700" ]; home.file = { #TODO: .calc_history "vtmp".source = symlink "/run/user/${toString config.local.uid}/vtmp"; ".units_history".source = devNull; }; programs = { zsh = { enable = true; enableAutosuggestions = true; syntaxHighlighting.enable = true; initExtra = import ./zshrc.nix pkgs; }; neovim = { enable = true; viAlias = true; vimAlias = 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 ''; }; }; xdg.configFile."home-manager" = mkIf (!config.home.isolation.active) { source = symlink "${config.home.homeDirectory}/nix"; }; }; }