From 6d493ac1ea6b1f22d86e06ca1bd261a4c116ac45 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 24 Jul 2022 17:52:52 +0200 Subject: Set XDG env variables --- hosts/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hosts') diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 55826ef..cd57bba 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -68,6 +68,18 @@ VISUAL = "nvim"; }; + environment.sessionVariables = rec { + XDG_CACHE_HOME = "\${HOME}/.cache"; + XDG_CONFIG_HOME = "\${HOME}/.config"; + XDG_BIN_HOME = "\${HOME}/.local/bin"; + XDG_DATA_HOME = "\${HOME}/.local/share"; + XDG_STATE_HOME = "\${HOME}/.local/state"; + + PATH = [ + "\${XDG_BIN_HOME}" + ]; + }; + # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ -- cgit 1.4.1