From 1204d4946ac3c576c133ef77619a72b6f9f3b624 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Thu, 13 Nov 2025 20:40:03 +0100 Subject: [PATCH] add boot app for macos --- hosts/darwin/home-default.nix | 37 +++++++++++++++++++++++++++++++++ hosts/darwin/system-default.nix | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/hosts/darwin/home-default.nix b/hosts/darwin/home-default.nix index 7e7b21f..0e85268 100644 --- a/hosts/darwin/home-default.nix +++ b/hosts/darwin/home-default.nix @@ -183,4 +183,41 @@ lazysql sqlite ]; + + # Startup applications via launchd agents + launchd.agents.snipaste = { + enable = true; + config = { + ProgramArguments = [ "/Applications/Snipaste.app/Contents/MacOS/Snipaste" ]; + RunAtLoad = true; + KeepAlive = false; + }; + }; + + launchd.agents.rectangle = { + enable = true; + config = { + ProgramArguments = [ "/Applications/Rectangle.app/Contents/MacOS/Rectangle" ]; + RunAtLoad = true; + KeepAlive = false; + }; + }; + + launchd.agents.maccy = { + enable = true; + config = { + ProgramArguments = [ "/Users/yanlin/Applications/Home Manager Apps/Maccy.app/Contents/MacOS/Maccy" ]; + RunAtLoad = true; + KeepAlive = false; + }; + }; + + launchd.agents.hidden-bar = { + enable = true; + config = { + ProgramArguments = [ "/Users/yanlin/Applications/Home Manager Apps/Hidden Bar.app/Contents/MacOS/Hidden Bar" ]; + RunAtLoad = true; + KeepAlive = false; + }; + }; } diff --git a/hosts/darwin/system-default.nix b/hosts/darwin/system-default.nix index 6a0d168..a0200db 100644 --- a/hosts/darwin/system-default.nix +++ b/hosts/darwin/system-default.nix @@ -48,9 +48,9 @@ expose-animation-duration = 0.5; # Mission Control animation speed dashboard-in-overlay = false; # Show Dashboard as overlay persistent-apps = [ + "/Applications/Ghostty.app" "/Applications/Firefox.app" "/Applications/Obsidian.app" - "/Applications/Ghostty.app" "/Applications/KeePassXC.app" ]; persistent-others = [