summaryrefslogtreecommitdiff
path: root/modules/environment/default.nix
diff options
context:
space:
mode:
authorDaniel V <lord_fright@yahoo.com>2020-05-11 06:56:21 -0400
committerDaniel V <lord_fright@yahoo.com>2020-05-11 06:56:21 -0400
commit5796faef94b9b02fbaf64dd3a779a8421c18f20e (patch)
treea424941a073f9b973c24575db8d9555b38311068 /modules/environment/default.nix
parentd3dff8cefb4fac62fc350c8946bc0132eb6d1153 (diff)
Set up XDG system environment variables sort of how they set them up
in nixos by appending them to the nix profiles
Diffstat (limited to 'modules/environment/default.nix')
-rw-r--r--modules/environment/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/environment/default.nix b/modules/environment/default.nix
index d0fb128..2791c45 100644
--- a/modules/environment/default.nix
+++ b/modules/environment/default.nix
@@ -169,7 +169,10 @@ in
'';
environment.variables =
- { EDITOR = mkDefault "nano";
+ {
+ XDG_CONFIG_DIRS = map (path: path + "/etc/xdg") cfg.profiles;
+ XDG_DATA_DIRS = map (path: path + "/share") cfg.profiles;
+ EDITOR = mkDefault "nano";
PAGER = mkDefault "less -R";
};