1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-21 15:50:14 +00:00
nix-darwin/modules/system/defaults/CustomPreferences.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
let
valueType = with lib.types; nullOr (oneOf [
bool
int
float
str
path
(attrsOf valueType)
(listOf valueType)
]) // {
description = "plist value";
};
defaultsType = types.submodule {
freeformType = valueType;
};
in {
options = {
system.defaults.CustomUserPreferences = mkOption {
type = defaultsType;
default = { };
example = {
"NSGlobalDomain" = { "TISRomanSwitchState" = 1; };
"com.apple.Safari" = {
"com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" =
true;
};
};
2024-04-14 23:02:32 +02:00
description = ''
Sets custom user preferences
'';
};
system.defaults.CustomSystemPreferences = mkOption {
type = defaultsType;
default = { };
example = {
"NSGlobalDomain" = { "TISRomanSwitchState" = 1; };
"com.apple.Safari" = {
"com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" =
true;
};
};
2024-04-14 23:02:32 +02:00
description = ''
Sets custom system preferences
'';
};
};
}