Skip to content

Commit

Permalink
extract the configuration of macOS languages and locale
Browse files Browse the repository at this point in the history
  • Loading branch information
franckrasolo committed Aug 1, 2024
1 parent a34ed0d commit 9451c6b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions darwin/macOS/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
./dock.nix
./finder.nix
./keyboard.nix
./languages.nix
./menuExtraClock.nix
./trackpad.nix
./sound.nix
Expand Down
12 changes: 12 additions & 0 deletions darwin/macOS/languages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ user, ... }:

{
home-manager.users.${user.accountName}.targets.darwin.defaults.NSGlobalDomain = {
AppleLanguages = [ "en" ];
AppleLocale = "en_GB@currency=GBP";

AppleMeasurementUnits = "Centimeters";
AppleMetricUnits = true;
AppleTemperatureUnit = "Celsius";
};
}
9 changes: 0 additions & 9 deletions darwin/macOS/miscellaneous.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
AppleFontSmoothing = 1;
AppleShowScrollBars = "WhenScrolling";

AppleMeasurementUnits = "Centimeters";
AppleMetricUnits = 1;
AppleTemperatureUnit = "Celsius";

# disable automatic typography options
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
Expand Down Expand Up @@ -58,11 +54,6 @@
"com.apple.swipescrolldirection" = true;
};

home-manager.users.${user.accountName}.targets.darwin.defaults.NSGlobalDomain = {
AppleLanguages = [ "en" ];
AppleLocale = "en_GB@currency=GBP";
};

system.defaults.LaunchServices = {
# disable the "Are you sure you want to open this application?" dialog
LSQuarantine = false;
Expand Down

0 comments on commit 9451c6b

Please sign in to comment.