From 3d86b123e3dca210e0f3b8873d34340056c83f66 Mon Sep 17 00:00:00 2001 From: sils Date: Tue, 6 Dec 2022 17:33:40 +0100 Subject: defined env vars in env.nix --- config.nix | 1 + env.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 env.nix diff --git a/config.nix b/config.nix index f274dee..a5dbd64 100644 --- a/config.nix +++ b/config.nix @@ -3,6 +3,7 @@ { imports = [ + ./env.nix ./packages.nix ./bootloader.nix ./plasma.nix diff --git a/env.nix b/env.nix new file mode 100644 index 0000000..62ea124 --- /dev/null +++ b/env.nix @@ -0,0 +1,23 @@ +{ config, pkgs, ... }: + +{ + 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"; + ZDOTDIR = "\${HOME}/.config/zsh"; + CARGO_HOME = "\${XDG_DATA_HOME}/cargo"; + ANDROID_HOME = "\${XDG_DATA_HOME}/android"; + ANSIBLE_HOME = "\${XDG_DATA_HOME}/ansible"; + #_JAVA_OPTIONS = '-Djava.util.prefs.userRoot="\${XDG_CONFIG_HOME}/java"'; + WINEPREFIX = "\${XDG_DATA_HOME}/wine"; + GNUPGHOME = "\${XDG_DATA_HOME}/gnupg"; + GRADLE_USER_HOME = "\${XDG_DATA_HOME}/gradle"; + #PYTHONSTARTUP="/etc/python/pythonrc"; + + PATH = [ + "\${XDG_BIN_HOME}" + ]; + }; +} -- cgit 1.4.1