containers

This commit is contained in:
Lilith 2024-07-24 00:36:50 +02:00
parent 65cefaf5cd
commit 578f0231ca
Signed by: lilith
GPG key ID: 8712A0F317C37175
6 changed files with 59 additions and 14 deletions

View file

@ -0,0 +1,32 @@
{ pkgs, lib, config, conf, ...}: {
imports = [
] ++ lib.optional config.docker.ollama.enable ./ollama.nix
;
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;
};
};
};
};
};
users.users.${conf.user}.extraGroups = ["podman"];
}

View file

@ -0,0 +1,5 @@
{...}: {
projects.ollama = {
}
}