nix: start darwin configuration

preparation for macOS
This commit is contained in:
Nico 2025-05-03 16:15:58 +10:00
parent b6f830297b
commit 3d70922a85
7 changed files with 213 additions and 1 deletions

View file

@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
{
power = {
sleep.computer = "never";
sleep.display = 5;
};
security.pam.enableSudoTouchIdAuth = true;
networking.dns = [
"1.1.1.1"
];
# keyboard
system.defaults.NSGlobalDomain = {
KeyRepeat = 1;
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticInlinePredictionEnabled = true;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
};
system.keyboard.remapCapsLockToControl = true;
system.keyboard.swapLeftCtrlAndFn = true;
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
system.defaults.hitoolbox.AppleFnUsageType = "Do Nothing";
# mouse
system.defaults.".GlobalPreferences"."com.apple.mouse.scaling" = -1.0; # mouse acceleration
}