summary refs log tree commit diff stats
path: root/common/environment/default.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-04-20 18:25:45 +0200
committersils <sils@sils.li>2023-04-20 18:31:19 +0200
commit8b5e6cfeed2b5c7088cdf8a98bacee72ad6cabd4 (patch)
treebd77dade79e8c7e6f6f3a136d53fd5518d9ffcb9 /common/environment/default.nix
parentFeat(packages.nix): Add pinentry (diff)
downloadnix-config-8b5e6cfeed2b5c7088cdf8a98bacee72ad6cabd4.tar.gz
nix-config-8b5e6cfeed2b5c7088cdf8a98bacee72ad6cabd4.zip
Feat(structure): Restructured repository
                 This is mainly convenience and my personal
                 preference.
Diffstat (limited to 'common/environment/default.nix')
-rw-r--r--common/environment/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/common/environment/default.nix b/common/environment/default.nix
new file mode 100644
index 0000000..8f58641
--- /dev/null
+++ b/common/environment/default.nix
@@ -0,0 +1,26 @@
+{...}: {
+  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";
+    ZDOTDIR = "\${HOME}/.config/zsh";
+    CARGO_HOME = "\${HOME}/.local/share/cargo";
+    ANDROID_HOME = "\${HOME}/.local/share/android";
+    ANSIBLE_HOME = "\${HOME}/.local/share/ansible";
+    #_JAVA_OPTIONS	= '-Djava.util.prefs.userRoot="\${XDG_CONFIG_HOME}/java"';
+    WINEPREFIX = "\${HOME}/.local/share/wine";
+    GNUPGHOME = "\${HOME}/.local/share/gnupg";
+    GRADLE_USER_HOME = "\${HOME}/.local/share/gradle";
+    GTK2_RC_FILES = "\${HOME}/.config/gtk-2.0/gtkrc";
+    EDITOR = "nvim";
+    GOPATH = "\${HOME}/.local/share/go";
+    XCOMPOSECACHE = "\${HOME}/.cache/X11/xcompose";
+    #PYTHONSTARTUP="/etc/python/pythonrc";
+
+    PATH = [
+      "\${XDG_BIN_HOME}"
+    ];
+  };
+}