From dff532c0603626357dc855c1185ba74e5002fc8c Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Sat, 13 Jul 2024 08:36:16 +0700 Subject: [PATCH] chore(nix): Disable auto install macOS update --- .config/nix/darwin/configuration.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.config/nix/darwin/configuration.nix b/.config/nix/darwin/configuration.nix index e288294..d6e11c0 100644 --- a/.config/nix/darwin/configuration.nix +++ b/.config/nix/darwin/configuration.nix @@ -1,8 +1,12 @@ { pkgs, vars, ... }: { - # List packages installed in system profile. To search by name, run: - # $ nix-env -qaP | grep wget + # I don't want to risk breaking my hackintosh setup in case Apple decided to + # turn on auto install by default. + system.defaults.SoftwareUpdate.AutomaticallyInstallMacOSUpdates = false; + + # NOTE: List packages installed in system profile. To search by name, run: + # `nix-env -qaP | grep wget` environment.systemPackages = [ pkgs.zsh pkgs.git @@ -52,6 +56,7 @@ # The platform the configuration will be used on. nixpkgs.hostPlatform = vars.arch; + # Swap CapsLock with Esc for better vi-mode experience. launchd.user.agents.CapsEscSwap = { serviceConfig = { ProgramArguments = [