From c591c5b6a86de87766d43fa9309e966c4bbfeff1 Mon Sep 17 00:00:00 2001 From: larstvei Date: Mon, 19 Sep 2022 16:54:39 +0200 Subject: [PATCH] Refactoring --- modules/mac.nix | 55 ++++++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/modules/mac.nix b/modules/mac.nix index 9e3b249..8503b5e 100644 --- a/modules/mac.nix +++ b/modules/mac.nix @@ -27,34 +27,37 @@ ''; networking.hostName = "macbookpro"; - system.stateVersion = 4; - system.keyboard = { - enableKeyMapping = true; - remapCapsLockToControl = true; - }; - system.defaults = { - screencapture = { location = "/tmp"; }; - dock = { - autohide = true; - showhidden = true; - mru-spaces = false; - }; - finder = { - AppleShowAllExtensions = true; - QuitMenuItem = true; - FXEnableExtensionChangeWarning = true; - }; + system = { + stateVersion = 4; - NSGlobalDomain = { - AppleKeyboardUIMode = 3; - ApplePressAndHoldEnabled = false; - AppleFontSmoothing = 1; - _HIHideMenuBar = true; - InitialKeyRepeat = 15; - KeyRepeat = 1; - "com.apple.mouse.tapBehavior" = 1; - "com.apple.swipescrolldirection" = true; + keyboard = { + enableKeyMapping = true; + remapCapsLockToControl = true; + }; + defaults = { + screencapture = { location = "/tmp"; }; + dock = { + autohide = true; + showhidden = true; + mru-spaces = false; + }; + finder = { + AppleShowAllExtensions = true; + QuitMenuItem = true; + FXEnableExtensionChangeWarning = true; + }; + + NSGlobalDomain = { + AppleKeyboardUIMode = 3; + ApplePressAndHoldEnabled = false; + AppleFontSmoothing = 1; + _HIHideMenuBar = true; + InitialKeyRepeat = 15; + KeyRepeat = 1; + "com.apple.mouse.tapBehavior" = 1; + "com.apple.swipescrolldirection" = true; + }; }; };