1
0
Fork 0
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:
Martin Svanberg 2024-03-08 17:38:57 +01:00
parent 550340062c
commit e3d502be76
No known key found for this signature in database

View file

@ -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" = ",";
}.
'';
};
};
}