containers
This commit is contained in:
parent
65cefaf5cd
commit
578f0231ca
6 changed files with 59 additions and 14 deletions
32
system/containers/default.nix
Normal file
32
system/containers/default.nix
Normal 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"];
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue