summaryrefslogtreecommitdiff
path: root/modules/time
diff options
context:
space:
mode:
Diffstat (limited to 'modules/time')
-rw-r--r--modules/time/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/time/default.nix b/modules/time/default.nix
index d3fa34d..01c4703 100644
--- a/modules/time/default.nix
+++ b/modules/time/default.nix
@@ -7,7 +7,7 @@ let
cfg = config.time;
timeZone = optionalString (cfg.timeZone != null) ''
- if [ -z $(systemsetup -listtimezones | grep "^ ${cfg.timeZone}$") ]; then
+ if ! systemsetup -listtimezones | grep -q "^ ${cfg.timeZone}$"; then
echo "${cfg.timeZone} is not a valid timezone. The command 'listtimezones' will show a list of valid time zones." >&2
false
fi
@@ -23,7 +23,7 @@ in
type = types.nullOr types.str;
default = null;
example = "America/New_York";
- description = lib.mdDoc ''
+ description = ''
The time zone used when displaying times and dates. See <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>
or run {command}`sudo systemsetup -listtimezones`
for a comprehensive list of possible values for this setting.