mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Add support for AppleICUNumberSymbols
This commit is contained in:
parent
550340062c
commit
e3d502be76
1 changed files with 26 additions and 1 deletions
|
@ -4,7 +4,8 @@ with lib;
|
|||
|
||||
let
|
||||
inherit (config.lib.defaults.types) floatWithDeprecationError;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
||||
system.defaults.".GlobalPreferences"."com.apple.sound.beep.sound" =
|
||||
|
@ -28,5 +29,29 @@ in {
|
|||
"System Preferences". Set to -1.0 to disable mouse acceleration.
|
||||
'';
|
||||
};
|
||||
|
||||
system.defaults.".GlobalPreferences"."AppleICUNumberSymbols" =
|
||||
mkOption {
|
||||
type = types.nullOr types.attrs;
|
||||
default = null;
|
||||
example = {
|
||||
"0" = ".";
|
||||
"1" = ",";
|
||||
"10" = ".";
|
||||
"17" = ",";
|
||||
};
|
||||
description = lib.mdDoc ''
|
||||
Sets the number formatting for the system. For example, to use a
|
||||
comma as the decimal separator and a period as the thousands
|
||||
separator, set this to:
|
||||
|
||||
{
|
||||
"0" = ".";
|
||||
"1" = ",";
|
||||
"10" = ".";
|
||||
"17" = ",";
|
||||
}.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue