containers
This commit is contained in:
parent
81a3c9ac67
commit
a7d3e5b7b9
4 changed files with 8 additions and 33 deletions
|
|
@ -1,27 +1,7 @@
|
|||
{ pkgs, lib, config, conf, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
arion
|
||||
docker-client
|
||||
];
|
||||
|
||||
virtualization = {
|
||||
docker.enable = false;
|
||||
podman.enable = true;
|
||||
podman.dockerSocket.enable = true;
|
||||
podman.defaultNetwork.dnsname.enable = true;
|
||||
|
||||
arion.projects.ollama = lib.mkIf config.containers.ollama.enable {
|
||||
settings.services = {
|
||||
ollama = {
|
||||
service = {
|
||||
image = "ollama/ollama:sha256:4325d935cd6e07cfa840eb193aad0594ba6cbc97ca9d0778f6716507cb3955ed";
|
||||
useHostStore = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
{ config, lib, ...}: {
|
||||
config = lib.mkIf config.containers.enable {
|
||||
virtualization.oci-containers.containers.ollama = lib.mkIf config.containers.ollama.enable {
|
||||
image = "ollama/ollama@sha256:4325d935cd6e07cfa840eb193aad0594ba6cbc97ca9d0778f6716507cb3955ed";
|
||||
};
|
||||
};
|
||||
|
||||
users.users.${conf.user}.extraGroups = ["podman"];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
{...}: {
|
||||
projects.ollama = {
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue