rebuilding nix files
This commit is contained in:
+317
-312
File diff suppressed because it is too large
Load Diff
+11
-6
@@ -1680,13 +1680,15 @@ in
|
|||||||
MISTRAL_API_KEY = envVars.MISTRAL_API_KEY or "";
|
MISTRAL_API_KEY = envVars.MISTRAL_API_KEY or "";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure Ollama service with explicit type declarations
|
# Configure Ollama service using the correct Home Manager syntax
|
||||||
systemd.user.services.ollama = {
|
systemd.user.services.ollama = {
|
||||||
description = "Ollama service for local AI models";
|
Unit = {
|
||||||
wantedBy = [ "default.target" ];
|
Description = "Ollama service for local AI models";
|
||||||
after = lib.mkForce [ "network.target" ]; # Explicitly force as a list
|
After = [ "network.target" ];
|
||||||
|
Wants = [ "network.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
serviceConfig = {
|
Service = {
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
ExecStart = "${pkgs.ollama-vulkan}/bin/ollama serve";
|
ExecStart = "${pkgs.ollama-vulkan}/bin/ollama serve";
|
||||||
ExecStartPost = ''
|
ExecStartPost = ''
|
||||||
@@ -1696,6 +1698,10 @@ in
|
|||||||
'';
|
'';
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# ZED configuration
|
# ZED configuration
|
||||||
@@ -1712,7 +1718,6 @@ in
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
# --- Usage Notes ---
|
# --- Usage Notes ---
|
||||||
# 1. Pulling Additional Models:
|
# 1. Pulling Additional Models:
|
||||||
# To add more models later, run:
|
# To add more models later, run:
|
||||||
|
|||||||
@@ -35,13 +35,15 @@ in
|
|||||||
MISTRAL_API_KEY = envVars.MISTRAL_API_KEY or "";
|
MISTRAL_API_KEY = envVars.MISTRAL_API_KEY or "";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure Ollama service with explicit type declarations
|
# Configure Ollama service using the correct Home Manager syntax
|
||||||
systemd.user.services.ollama = {
|
systemd.user.services.ollama = {
|
||||||
description = "Ollama service for local AI models";
|
Unit = {
|
||||||
wantedBy = [ "default.target" ];
|
Description = "Ollama service for local AI models";
|
||||||
after = lib.mkForce [ "network.target" ]; # Explicitly force as a list
|
After = [ "network.target" ];
|
||||||
|
Wants = [ "network.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
serviceConfig = {
|
Service = {
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
ExecStart = "${pkgs.ollama-vulkan}/bin/ollama serve";
|
ExecStart = "${pkgs.ollama-vulkan}/bin/ollama serve";
|
||||||
ExecStartPost = ''
|
ExecStartPost = ''
|
||||||
@@ -51,6 +53,10 @@ in
|
|||||||
'';
|
'';
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# ZED configuration
|
# ZED configuration
|
||||||
@@ -67,7 +73,6 @@ in
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
# --- Usage Notes ---
|
# --- Usage Notes ---
|
||||||
# 1. Pulling Additional Models:
|
# 1. Pulling Additional Models:
|
||||||
# To add more models later, run:
|
# To add more models later, run:
|
||||||
|
|||||||
Reference in New Issue
Block a user