nixos/systemd: Fix environment type -> allows overriding

This commit is contained in:
Silvan Mosberger 2018-04-03 00:36:52 +02:00
parent 00fc66dc7d
commit e9fc2558f9
No known key found for this signature in database
GPG key ID: 9424360B4B85C9E7
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,7 @@ in rec {
environment = mkOption {
default = {};
type = types.attrs; # FIXME
type = with types; attrsOf (nullOr (either str package));
example = { PATH = "/foo/bar/bin"; LANG = "nl_NL.UTF-8"; };
description = "Environment variables passed to the service's processes.";
};

View file

@ -516,7 +516,7 @@ in
};
systemd.globalEnvironment = mkOption {
type = types.attrs;
type = with types; attrsOf (nullOr (either str package));
default = {};
example = { TZ = "CET"; };
description = ''