update
This commit is contained in:
parent
2c74937d34
commit
22c0fd8a46
@ -13,7 +13,11 @@ in
|
|||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
open-webui = prev.open-webui.overridePythonAttrs(old: {
|
open-webui = prev.open-webui.overridePythonAttrs(old: {
|
||||||
dependencies = old.dependencies ++ [pkgs.python311Packages.emoji];
|
dependencies = with pkgs.python311Packages; old.dependencies ++ [
|
||||||
|
emoji
|
||||||
|
iso-639
|
||||||
|
langdetect
|
||||||
|
];
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
@ -235,7 +239,7 @@ in
|
|||||||
acceleration = "cuda";
|
acceleration = "cuda";
|
||||||
};
|
};
|
||||||
services.open-webui = {
|
services.open-webui = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
};
|
};
|
||||||
|
|||||||
@ -6,6 +6,12 @@
|
|||||||
{
|
{
|
||||||
# virtualisation.oci-containers.backend = "podman";
|
# virtualisation.oci-containers.backend = "podman";
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
|
open-webui = {
|
||||||
|
image = "ghcr.io/open-webui/open-webui:main";
|
||||||
|
volumes = ["/opt/open-webui:/app/backend/data"];
|
||||||
|
# ports = ["3000:8080/tcp"];
|
||||||
|
extraOptions = ["--gpus=all" "--network=host"];
|
||||||
|
};
|
||||||
# factorio = {
|
# factorio = {
|
||||||
# image = "factoriotools/factorio:stable-2.0.13";
|
# image = "factoriotools/factorio:stable-2.0.13";
|
||||||
# autoStart = true;
|
# autoStart = true;
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
hardware.nvidia-container-toolkit.enable = true;
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user