1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

docs: add missing environment defaults

This commit is contained in:
Jan Schmitt 2022-09-17 21:18:55 +02:00
parent 3b69bf3cc2
commit bf9dd17ae5
No known key found for this signature in database
GPG key ID: F03E7A35B52BA595

View file

@ -85,6 +85,12 @@ in
environment.variables = mkOption {
type = types.attrsOf (types.either types.str (types.listOf types.str));
default = {};
defaultText = literalExpression ''
XDG_CONFIG_DIRS=$HOME/.nix-profile/etc/xdg:/run/current-system/sw/etc/xdg:/nix/var/nix/profiles/default/etc/xdg
XDG_DATA_DIRS=$HOME/.nix-profile/share:/run/current-system/sw/share:/nix/var/nix/profiles/default/share
EDITOR = "nano";
PAGER = "less -R";
'';
example = { EDITOR = "vim"; LANG = "nl_NL.UTF-8"; };
description = ''
A set of environment variables used in the global environment.