From cbb40696de32156f9ce2d07aa6c3eeb13697a331 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Wed, 17 May 2023 22:24:58 -0700 Subject: [PATCH] start syncthing on load with launchd and improve dock/spaces defaults --- nix/system/worktop/darwin-configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nix/system/worktop/darwin-configuration.nix b/nix/system/worktop/darwin-configuration.nix index 67640fb..2ddaddc 100644 --- a/nix/system/worktop/darwin-configuration.nix +++ b/nix/system/worktop/darwin-configuration.nix @@ -51,6 +51,15 @@ '' ); + launchd.user.agents.syncthing = { + path = [ pkgs.syncthing ]; + command = "syncthing serve"; + serviceConfig = { + ProcessType = "Background"; + KeepAlive = true; + }; + }; + system.keyboard = { enableKeyMapping = true; remapCapsLockToEscape = true; @@ -58,6 +67,12 @@ system.defaults = { finder.AppleShowAllExtensions = true; + + dock = { + autohide = true; + mru-spaces = false; + showhidden = true; + }; }; # Used for backwards compatibility, please read the changelog before changing.