summaryrefslogtreecommitdiff
path: root/modules/examples
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-08-23 00:13:03 +0200
committerDaiderd Jordan <daiderd@gmail.com>2018-08-23 00:13:03 +0200
commit90c34df929df878429eeca090a19201a21cc95bd (patch)
treeedbb2f6806a7b3d1c99425c62437a004766701e2 /modules/examples
parentb1e32f07898f74e24a4b58132b40a3ba3be2bd55 (diff)
lnl: use environment.d
Diffstat (limited to 'modules/examples')
-rw-r--r--modules/examples/lnl.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix
index 73005ac..189513c 100644
--- a/modules/examples/lnl.nix
+++ b/modules/examples/lnl.nix
@@ -295,9 +295,6 @@
zle -N up-line-or-beginning-search
'';
- environment.variables.CLICOLOR = "1";
- environment.variables.FZF_DEFAULT_COMMAND = "ag -l -f -g ''";
- environment.variables.SHELLCHECK_OPTS = "-e SC1008";
environment.variables.LANG = "en_US.UTF-8";
environment.shellAliases.e = "$EDITOR";
@@ -312,6 +309,15 @@
environment.shellAliases.grh = "git reset --hard";
environment.shellAliases.l = "ls -lh";
+ environment.extraInit = ''
+ # Load and export variables from environment.d.
+ if [ -d /etc/environment.d ]; then
+ set -a
+ . /etc/environment.d/*
+ set +a
+ fi
+ '';
+
nix.nixPath =
[ # Use local nixpkgs checkout instead of channels.
"darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix"