nixos/systemd: Fix environment type -> allows overriding
This commit is contained in:
parent
00fc66dc7d
commit
e9fc2558f9
@ -217,7 +217,7 @@ in rec {
|
|||||||
|
|
||||||
environment = mkOption {
|
environment = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
type = types.attrs; # FIXME
|
type = with types; attrsOf (nullOr (either str package));
|
||||||
example = { PATH = "/foo/bar/bin"; LANG = "nl_NL.UTF-8"; };
|
example = { PATH = "/foo/bar/bin"; LANG = "nl_NL.UTF-8"; };
|
||||||
description = "Environment variables passed to the service's processes.";
|
description = "Environment variables passed to the service's processes.";
|
||||||
};
|
};
|
||||||
|
@ -516,7 +516,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
systemd.globalEnvironment = mkOption {
|
systemd.globalEnvironment = mkOption {
|
||||||
type = types.attrs;
|
type = with types; attrsOf (nullOr (either str package));
|
||||||
default = {};
|
default = {};
|
||||||
example = { TZ = "CET"; };
|
example = { TZ = "CET"; };
|
||||||
description = ''
|
description = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user