mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
open-webui for wsl
This commit is contained in:
+1
-2
@@ -16,9 +16,8 @@ let
|
|||||||
./hardware/logitech.nix
|
./hardware/logitech.nix
|
||||||
self.nixosModules.default
|
self.nixosModules.default
|
||||||
|
|
||||||
self.nixosModules.server.ai
|
self.nixosModules.server.open-webui
|
||||||
self.nixosModules.software.wine
|
self.nixosModules.software.wine
|
||||||
self.nixosModules.software.ai
|
|
||||||
self.nixosModules.software.beets
|
self.nixosModules.software.beets
|
||||||
#self.nixosModules.extra.self.fingerprint
|
#self.nixosModules.extra.self.fingerprint
|
||||||
self.nixosModules.desktop
|
self.nixosModules.desktop
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ let
|
|||||||
imports = with inputs; [
|
imports = with inputs; [
|
||||||
nixos-wsl.nixosModules.default
|
nixos-wsl.nixosModules.default
|
||||||
self.nixosModules.default
|
self.nixosModules.default
|
||||||
|
|
||||||
|
self.nixosModules.server.open-webui
|
||||||
];
|
];
|
||||||
|
|
||||||
#zramSwap.enable = true;
|
#zramSwap.enable = true;
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
server = {
|
server = {
|
||||||
ai = import ./modules/server/ai.nix flakeContext;
|
open-webui = import ./modules/server/open-webui.nix flakeContext;
|
||||||
cloudflared = import ./modules/server/cloudflared.nix flakeContext;
|
cloudflared = import ./modules/server/cloudflared.nix flakeContext;
|
||||||
immich = import ./modules/server/immich.nix flakeContext;
|
immich = import ./modules/server/immich.nix flakeContext;
|
||||||
nextcloud = import ./modules/server/nextcloud.nix flakeContext;
|
nextcloud = import ./modules/server/nextcloud.nix flakeContext;
|
||||||
|
|||||||
Executable → Regular
+8
-8
@@ -5,17 +5,17 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
# let
|
||||||
fix = import inputs.nixos {
|
# fix = import inputs.nixpkgs {
|
||||||
system = "x86_64-linux";
|
# system = "x86_64-linux";
|
||||||
config.allowUnfree = true;
|
# config.allowUnfree = true;
|
||||||
}; # temp
|
# }; # temp
|
||||||
in
|
# in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
open-webui = {
|
open-webui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = fix.open-webui;
|
#package = fix.open-webui;
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
port = 11111;
|
port = 11111;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
@@ -25,7 +25,7 @@ in
|
|||||||
SCARF_NO_ANALYTICS = "True";
|
SCARF_NO_ANALYTICS = "True";
|
||||||
OPENAI_API_BASE_URL = "http://localhost:1234/v1";
|
OPENAI_API_BASE_URL = "http://localhost:1234/v1";
|
||||||
#OLLAMA_API_BASE_URL = "http://127.0.0.1:1234";
|
#OLLAMA_API_BASE_URL = "http://127.0.0.1:1234";
|
||||||
WEBUI_AUTH = "True"; # Disable authentication
|
WEBUI_AUTH = "True";
|
||||||
ENABLE_SIGNUP = "True";
|
ENABLE_SIGNUP = "True";
|
||||||
ENABLE_SIGNUP_PASSWORD_CONFIRMATION = "True";
|
ENABLE_SIGNUP_PASSWORD_CONFIRMATION = "True";
|
||||||
ENABLE_VERSION_UPDATE_CHECK = "False";
|
ENABLE_VERSION_UPDATE_CHECK = "False";
|
||||||
Reference in New Issue
Block a user