mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
adds com.apple.SoftwareUpdate
This commit is contained in:
parent
6100c826d4
commit
42c8f9bce3
3 changed files with 19 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
|||
./system/defaults/alf.nix
|
||||
./system/defaults/loginwindow.nix
|
||||
./system/defaults/smb.nix
|
||||
./system/defaults/SoftwareUpdate.nix
|
||||
./system/defaults/spaces.nix
|
||||
./system/defaults/trackpad.nix
|
||||
./system/etc.nix
|
||||
|
|
|
@ -29,6 +29,7 @@ let
|
|||
alf = defaultsToList "/Library/Preferences/com.apple.alf" cfg.alf;
|
||||
loginwindow = defaultsToList "/Library/Preferences/com.apple.loginwindow" cfg.loginwindow;
|
||||
smb = defaultsToList "/Library/Preferences/SystemConfiguration/com.apple.smb.server" cfg.smb;
|
||||
SoftwareUpdate = defaultsToList "/Library/Preferences/SystemConfiguration/com.apple.SoftwareUpdate" cfg.SoftwareUpdate;
|
||||
screencapture = defaultsToList "com.apple.screencapture" cfg.screencapture;
|
||||
spaces = defaultsToList "com.apple.spaces" cfg.spaces;
|
||||
trackpad = defaultsToList "com.apple.AppleMultitouchTrackpad" cfg.trackpad;
|
||||
|
@ -40,13 +41,14 @@ in
|
|||
{
|
||||
config = {
|
||||
|
||||
system.activationScripts.defaults.text = mkIfAttrs [ alf loginwindow smb ]
|
||||
system.activationScripts.defaults.text = mkIfAttrs [ alf loginwindow smb SoftwareUpdate ]
|
||||
''
|
||||
# Set defaults
|
||||
echo >&2 "system defaults..."
|
||||
${concatStringsSep "\n" alf}
|
||||
${concatStringsSep "\n" loginwindow}
|
||||
${concatStringsSep "\n" smb}
|
||||
${concatStringsSep "\n" SoftwareUpdate}
|
||||
'';
|
||||
|
||||
system.activationScripts.userDefaults.text = mkIfAttrs
|
||||
|
|
15
modules/system/defaults/SoftwareUpdate.nix
Normal file
15
modules/system/defaults/SoftwareUpdate.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options = {
|
||||
system.defaults.SoftwareUpdate.AutomaticallyInstallMacOSUpdates = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
Automatically install Mac OS software updates. Defaults to false.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue