From f07acb443ae578a77fba338cbdeac6365e68ae25 Mon Sep 17 00:00:00 2001 From: Chris Montgomery Date: Fri, 24 Dec 2021 17:20:15 -0500 Subject: [PATCH] defaults-write: formatting --- modules/system/defaults-write.nix | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/modules/system/defaults-write.nix b/modules/system/defaults-write.nix index 83429845..a1d392b7 100644 --- a/modules/system/defaults-write.nix +++ b/modules/system/defaults-write.nix @@ -37,13 +37,18 @@ let magicmouse = defaultsToList "com.apple.AppleMultitouchMouse" cfg.magicmouse; magicmouseBluetooth = defaultsToList "com.apple.driver.AppleMultitouchMouse.mouse" cfg.magicmouse; - mkIfAttrs = list: mkIf (any (attrs: attrs != {}) list); + mkIfAttrs = list: mkIf (any (attrs: attrs != { }) list); in { config = { - system.activationScripts.defaults.text = mkIfAttrs [ alf loginwindow smb SoftwareUpdate ] + system.activationScripts.defaults.text = mkIfAttrs [ + alf + loginwindow + smb + SoftwareUpdate + ] '' # Set defaults echo >&2 "system defaults..." @@ -54,7 +59,19 @@ in ''; system.activationScripts.userDefaults.text = mkIfAttrs - [ NSGlobalDomain GlobalPreferences LaunchServices dock finder screencapture spaces trackpad trackpadBluetooth magicmouse magicmouseBluetooth ] + [ + NSGlobalDomain + GlobalPreferences + LaunchServices + dock + finder + screencapture + spaces + trackpad + trackpadBluetooth + magicmouse + magicmouseBluetooth + ] '' # Set defaults echo >&2 "user defaults..."