diff options
Diffstat (limited to 'home-manager/home.nix')
| -rw-r--r-- | home-manager/home.nix | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/home-manager/home.nix b/home-manager/home.nix index da6601e..0d5eaa7 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -36,7 +36,6 @@ in pkgs.tokei pkgs.tree pkgs.zig - # pkgs.zsh pkgs.nodePackages.typescript-language-server ] ++ pkgs.lib.optional requiresWlClipboard pkgs.wl-clipboard; @@ -45,8 +44,23 @@ in # "hoge".source = dotfiles/piyo; }; - home.sessionVariables = { - # EDITOR = "nvim"; + home.sessionVariables = rec { + # XDG Base Directories + # See: https://wiki.archlinux.org/title/XDG_Base_Directory + XDG_CONFIG_HOME = "${homeDirectory}/.config"; + XDG_CACHE_HOME = "${homeDirectory}/.cache"; + XDG_DATA_HOME = "${homeDirectory}/.local/share"; + XDG_STATE_HOME = "${homeDirectory}/.local/state"; + # XDG Base Directories: Node.js + NODE_REPL_HISTORY = "${XDG_CACHE_HOME}/node_repl_history"; + # XDG Base Directories: SQLite + SQLITE_HISTORY = "${XDG_CACHE_HOME}/sqlite_history"; + + # Local + LANG = "en_US.UTF-8"; + LC_ALL = ""; + # Locale: Less + LESSCHARSET = "utf-8"; }; programs.direnv = { @@ -80,4 +94,14 @@ in in commonConfig + extraConfig; }; + + programs.zsh = { + enable = true; + + envExtra = '' + export PATH="$HOME/bin:$HOME/.local/bin:$PATH" + ''; + + initExtra = builtins.readFile ../.zshrc; + }; } |
