mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 08:17:01 +00:00
adds com.apple.spaces
This commit is contained in:
parent
400a367d4e
commit
626a112ce3
3 changed files with 24 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
./system/defaults/screencapture.nix
|
||||
./system/defaults/alf.nix
|
||||
./system/defaults/smb.nix
|
||||
./system/defaults/spaces.nix
|
||||
./system/defaults/trackpad.nix
|
||||
./system/etc.nix
|
||||
./system/keyboard.nix
|
||||
|
|
|
@ -29,6 +29,7 @@ let
|
|||
alf = defaultsToList "/Library/Preferences/com.apple.alf" cfg.alf;
|
||||
smb = defaultsToList "/Library/Preferences/SystemConfiguration/com.apple.smb.server" cfg.smb;
|
||||
screencapture = defaultsToList "com.apple.screencapture" cfg.screencapture;
|
||||
spaces = defaultsToList "com.apple.spaces" cfg.spaces;
|
||||
trackpad = defaultsToList "com.apple.AppleMultitouchTrackpad" cfg.trackpad;
|
||||
trackpadBluetooth = defaultsToList "com.apple.driver.AppleBluetoothMultitouch.trackpad" cfg.trackpad;
|
||||
|
||||
|
@ -47,7 +48,7 @@ in
|
|||
'';
|
||||
|
||||
system.activationScripts.userDefaults.text = mkIfAttrs
|
||||
[ NSGlobalDomain GlobalPreferences LaunchServices dock finder screencapture trackpad trackpadBluetooth ]
|
||||
[ NSGlobalDomain GlobalPreferences LaunchServices dock finder screencapture spaces trackpad trackpadBluetooth ]
|
||||
''
|
||||
# Set defaults
|
||||
echo >&2 "user defaults..."
|
||||
|
@ -58,6 +59,7 @@ in
|
|||
${concatStringsSep "\n" dock}
|
||||
${concatStringsSep "\n" finder}
|
||||
${concatStringsSep "\n" screencapture}
|
||||
${concatStringsSep "\n" spaces}
|
||||
${concatStringsSep "\n" trackpad}
|
||||
${concatStringsSep "\n" trackpadBluetooth}
|
||||
'';
|
||||
|
|
20
modules/system/defaults/spaces.nix
Normal file
20
modules/system/defaults/spaces.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options = {
|
||||
system.defaults.spaces.spans-displays = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
# Apple menu > System Preferences > Mission Control
|
||||
Displays have separate Spaces (note a logout is required before
|
||||
this setting will take affect).
|
||||
|
||||
false = each physical display has a separate space (Mac default)
|
||||
true = one space spans across all physical displays
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue