summaryrefslogtreecommitdiff
path: root/modules
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
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')
-rw-r--r--modules/environment/default.nix5
-rw-r--r--modules/programs/bash/default.nix3
2 files changed, 4 insertions, 4 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";
};
diff --git a/modules/programs/bash/default.nix b/modules/programs/bash/default.nix
index 1e60d84..7d13c69 100644
--- a/modules/programs/bash/default.nix
+++ b/modules/programs/bash/default.nix
@@ -86,9 +86,6 @@ in
for m in "$p/etc/bash_completion.d/"*; do
source $m
done
- for m in "$p/share/bash-completion/completions/"*; do
- source $m
- done
done
eval "$nullglobStatus"
unset nullglobStatus p m