summaryrefslogtreecommitdiff
path: root/modules/system/defaults-write.nix
diff options
context:
space:
mode:
authorChris Montgomery <chris@alley.co>2021-12-24 17:20:15 -0500
committerChris Montgomery <chris@alley.co>2021-12-24 17:20:15 -0500
commitf07acb443ae578a77fba338cbdeac6365e68ae25 (patch)
treeee73224a13ea0d3b3a138d583eaa21cba77a0399 /modules/system/defaults-write.nix
parent5851d9613edf8b2279746c7e5b9faac55ff17e8a (diff)
defaults-write: formatting
Diffstat (limited to 'modules/system/defaults-write.nix')
-rw-r--r--modules/system/defaults-write.nix23
1 files changed, 20 insertions, 3 deletions
diff --git a/modules/system/defaults-write.nix b/modules/system/defaults-write.nix
index 8342984..a1d392b 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..."