diff options
author | ene <ene@sils.li> | 2023-02-21 19:52:20 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-21 19:54:54 +0100 |
commit | b85e875378b7355e10ee8d2253f3cab327854306 (patch) | |
tree | c328913840b5683dc08fd9a2a6262a691532792e | |
parent | Fix(river): Add missing dependency for init (diff) | |
download | nixos-config-b85e875378b7355e10ee8d2253f3cab327854306.tar.gz nixos-config-b85e875378b7355e10ee8d2253f3cab327854306.zip |
Fix(zsh): Set better environment variables
Diffstat (limited to '')
-rw-r--r-- | home-manager/config/zsh/default.nix | 7 | ||||
-rw-r--r-- | home-manager/default.nix | 7 |
2 files changed, 5 insertions, 9 deletions
diff --git a/home-manager/config/zsh/default.nix b/home-manager/config/zsh/default.nix index e7cd98a1..533c8b17 100644 --- a/home-manager/config/zsh/default.nix +++ b/home-manager/config/zsh/default.nix @@ -76,13 +76,6 @@ yarn = "yarn --use-yarnrc ${config.xdg.configHome}/yarn/config"; }; sessionVariables = { - # managed by home-manager xdg - # XDG_DATA_HOME = "$HOME/.local/share"; - # XDG_STATE_HOME = "$HOME/.local/state"; - # XDG_CACHE_HOME = "$HOME/.cache"; - # XDG_CONFIG_HOME = "$HOME/.config"; - # XDG_BIN_HOME = "\${HOME}/.local/bin"; - # HISTSIZE = "9000000"; # This Should already be set by the shell TIMEFMT = "'$fg[green]%J$reset_color' time: $fg[blue]%*Es$reset_color, cpu: $fg[blue]%P$reset_color"; # no idea what this does or why it is needed REPORTTIME = "10"; diff --git a/home-manager/default.nix b/home-manager/default.nix index bfe3859a..abd541aa 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -12,8 +12,12 @@ username = "soispha"; homeDirectory = "/home/${username}"; + # xdg configHome = "${homeDirectory}/.config"; dataHome = "${homeDirectory}/.local/share"; + stateHome = "${homeDirectory}/.local/state"; + cacheHome = "${homeDirectory}/.cache"; + binHome = "${homeDirectory}/.local/bin"; in { imports = [ # inputs.impermanence.nixosModules.home-manager.impermanence @@ -32,13 +36,12 @@ in { # TODO sessionVariables = { - DISPLAY = ":0"; EDITOR = "nvim"; }; packages = []; }; xdg = { - inherit configHome dataHome; + inherit configHome dataHome stateHome cacheHome binHome; enable = true; }; } |