2023-04-29 23:09:11 -04:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
|
2024-11-12 01:24:22 +00:00
|
|
|
system.defaults.menuExtraClock.FlashDateSeparators = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
|
|
|
description = ''
|
|
|
|
When enabled, the clock indicator (which by default is the colon) will flash on and off each second. Default is null.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-05-15 13:18:38 -04:00
|
|
|
system.defaults.menuExtraClock.IsAnalog = mkOption {
|
2023-04-29 23:09:11 -04:00
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2023-04-29 23:09:11 -04:00
|
|
|
Show an analog clock instead of a digital one. Default is null.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-05-15 13:18:38 -04:00
|
|
|
system.defaults.menuExtraClock.Show24Hour = mkOption {
|
2023-04-29 23:09:11 -04:00
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2023-04-29 23:09:11 -04:00
|
|
|
Show a 24-hour clock, instead of a 12-hour clock. Default is null.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-05-15 13:18:38 -04:00
|
|
|
system.defaults.menuExtraClock.ShowAMPM = mkOption {
|
2023-04-29 23:09:11 -04:00
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2023-04-29 23:09:11 -04:00
|
|
|
Show the AM/PM label. Useful if Show24Hour is false. Default is null.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-05-15 13:18:38 -04:00
|
|
|
system.defaults.menuExtraClock.ShowDayOfMonth = mkOption {
|
2023-04-29 23:09:11 -04:00
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2023-04-29 23:09:11 -04:00
|
|
|
Show the day of the month. Default is null.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-05-15 13:18:38 -04:00
|
|
|
system.defaults.menuExtraClock.ShowDayOfWeek = mkOption {
|
2023-04-29 23:09:11 -04:00
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2023-04-29 23:09:11 -04:00
|
|
|
Show the day of the week. Default is null.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-05-15 13:18:38 -04:00
|
|
|
system.defaults.menuExtraClock.ShowDate = mkOption {
|
2023-04-29 23:09:11 -04:00
|
|
|
type = types.nullOr (types.enum [ 0 1 2 ]);
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2023-04-29 23:09:11 -04:00
|
|
|
Show the full date. Default is null.
|
|
|
|
|
2024-04-18 13:53:30 +00:00
|
|
|
0 = When space allows
|
|
|
|
1 = Always
|
|
|
|
2 = Never
|
2023-04-29 23:09:11 -04:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-05-15 13:18:38 -04:00
|
|
|
system.defaults.menuExtraClock.ShowSeconds = mkOption {
|
2023-04-29 23:09:11 -04:00
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 23:02:32 +02:00
|
|
|
description = ''
|
2023-04-29 23:09:11 -04:00
|
|
|
Show the clock with second precision, instead of minutes. Default is null.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|