From b85e875378b7355e10ee8d2253f3cab327854306 Mon Sep 17 00:00:00 2001 From: ene Date: Tue, 21 Feb 2023 19:52:20 +0100 Subject: Fix(zsh): Set better environment variables --- home-manager/config/zsh/default.nix | 7 ------- 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; }; } -- cgit 1.4.1