From 9a6d19b10195e6bfcc08c4ccf0002aa704fb949a Mon Sep 17 00:00:00 2001 From: servius Date: Tue, 13 Jan 2026 16:23:45 +0530 Subject: [PATCH] feat(atuin): add macOS launchd daemon agent --- home/programs/atuin.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/home/programs/atuin.nix b/home/programs/atuin.nix index 4130c09f..60f04840 100644 --- a/home/programs/atuin.nix +++ b/home/programs/atuin.nix @@ -35,4 +35,23 @@ # Environment = lib.mkForce "ATUIN_DATA_DIR=${device.home}/.local/share/atuin"; }; }; + launchd.agents.atuin-daemon = { + enable = true; + config = { + # A label for the service + Label = "dev.darksailor.atuin-daemon"; + # The command to run + ProgramArguments = [ + "${pkgs.atuin}/bin/atuin" + "daemon" + ]; + # Run the service when you log in + RunAtLoad = true; + # Keep the process alive, or restart if it dies + KeepAlive = true; + # Log files + StandardOutPath = "${device.home}/Library/Logs/atuin-daemon.log"; + StandardErrorPath = "${device.home}/Library/Logs/atuin-daemon.error.log"; + }; + }; }