Skip to content

Commit

Permalink
nixos/systemd: Fix environment type -> allows overriding
Browse files Browse the repository at this point in the history
(cherry picked from commit e9fc255)
  • Loading branch information
infinisil authored and LnL7 committed Apr 21, 2018
1 parent e8f32d0 commit df4eae6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/systemd-unit-options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
};
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/systemd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ in
};

systemd.globalEnvironment = mkOption {
type = types.attrs;
type = with types; attrsOf (nullOr (either str package));
default = {};
example = { TZ = "CET"; };
description = ''
Expand Down

0 comments on commit df4eae6

Please sign in to comment.