+14
nix/darwin.nix
+14
nix/darwin.nix
···
13
13
(pkgs-unstable.lua5_1.withPackages (ps: with ps; [luarocks]))
14
14
];
15
15
16
+
launchd.user.agents = {
17
+
# reference: https://www.danielcorin.com/til/nix-darwin/launch-agents/
18
+
ollama-serve = {
19
+
command = "${pkgs.ollama}/bin/ollama serve";
20
+
serviceConfig = {
21
+
# Label = "com.ollama.serve";
22
+
KeepAlive = true;
23
+
RunAtLoad = true;
24
+
StandardOutPath = "/tmp/ollama_boltless.log";
25
+
StandardErrorPath = "/tmp/ollama_boltless.err";
26
+
};
27
+
};
28
+
};
29
+
16
30
# Necessary for using flakes on this system.
17
31
nix.settings.experimental-features = "nix-command flakes";
18
32
# Enable rosetta binaries