bring back nix-darwin hosts compatability

This commit is contained in:
Yan Lin 2025-11-13 10:40:27 +01:00
parent 1b6a0430d2
commit 0bf4fb87c6
13 changed files with 579 additions and 31 deletions

View file

@ -114,6 +114,11 @@ in
};
};
# Override the launchd agent to add RunAtLoad on macOS
launchd.agents.syncthing = lib.mkIf (pkgs.stdenv.isDarwin && config.services.syncthing.enable) {
config.RunAtLoad = true;
};
# Deploy .stignore files to synced folders (only for enabled folders)
home.file = lib.mkMerge [
(lib.mkIf (lib.elem "Credentials" cfg.enabledFolders) {