forked from nico/dots
chore: organise modules
Organise modules in a significantly better way with categories.
This commit is contained in:
parent
7444260d7d
commit
3660ef23f1
33 changed files with 77 additions and 76 deletions
43
modules/hardware/darwin.nix
Normal file
43
modules/hardware/darwin.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
power = {
|
||||
sleep.computer = "never";
|
||||
sleep.display = 5;
|
||||
};
|
||||
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
||||
networking = {
|
||||
knownNetworkServices = [
|
||||
"Wi-Fi"
|
||||
"Ethernet Adaptor"
|
||||
"Thunderbolt Ethernet"
|
||||
];
|
||||
|
||||
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.enableKeyMapping = true;
|
||||
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
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue