summaryrefslogtreecommitdiff
path: root/modules/environment
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-01-25 21:16:53 +0100
committerDaiderd Jordan <daiderd@gmail.com>2017-01-25 21:16:53 +0100
commitd014ed24453949721f40ea5b3b4385d398a14a26 (patch)
tree9c3f6e862e086084033936f45a29f733bdebb694 /modules/environment
parent44d4d2b277facf0006a684ee3eb8c1913be6adb0 (diff)
launchd: add command, path and environment options
Diffstat (limited to 'modules/environment')
-rw-r--r--modules/environment/default.nix13
1 files changed, 4 insertions, 9 deletions
diff --git a/modules/environment/default.nix b/modules/environment/default.nix
index 5fa222e..05a6c9b 100644
--- a/modules/environment/default.nix
+++ b/modules/environment/default.nix
@@ -34,9 +34,7 @@ in {
environment.systemPath = mkOption {
type = types.loeOf types.path;
default = (reverseList cfg.profiles) ++ [ "/usr/local" "/usr" "" ];
- description = ''
- The set of paths that are added to PATH
- '';
+ description = "The set of paths that are added to PATH.";
apply = x: if isList x then makeBinPath x else x;
};
@@ -48,9 +46,7 @@ in {
"/nix/var/nix/profiles/default"
"/run/current-system/sw"
];
- description = ''
- A list of profiles used to setup the global environment.
- '';
+ description = "A list of profiles used to setup the global environment.";
};
environment.extraOutputsToInstall = mkOption {
@@ -63,14 +59,13 @@ in {
environment.loginShell = mkOption {
type = types.str;
default = "$SHELL";
- description = ''
- Configure default login shell.
- '';
+ description = "Configure default login shell.";
};
environment.variables = mkOption {
type = types.attrsOf (types.either types.str (types.listOf types.str));
default = {};
+ example = { EDITOR = "vim"; LANG = "nl_NL.UTF-8"; };
description = ''
A set of environment variables used in the global environment.
These variables will be set on shell initialisation.