From c1a247a18665c455c945e65cebea4343eb4726e2 Mon Sep 17 00:00:00 2001 From: oqyude Date: Thu, 31 Jul 2025 19:54:36 +0300 Subject: [PATCH] 123 --- flake.lock | 17 +++++++++++++++++ flake.nix | 1 + modules/server/ai.nix | 6 +++--- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 11872b7..5fd8e7c 100644 --- a/flake.lock +++ b/flake.lock @@ -389,6 +389,22 @@ "type": "github" } }, + "nixpkgs-webui": { + "locked": { + "lastModified": 1748501411, + "narHash": "sha256-q70mzUJkTD9TnG0R98t4LH6BtiCNV+NfM/QAUbseGGo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "72353fc1fa61189fb76133d50c519e871c858c39", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "72353fc1fa61189fb76133d50c519e871c858c39", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1753432016, @@ -489,6 +505,7 @@ "nixpkgs-last-unstable": "nixpkgs-last-unstable", "nixpkgs-stable": "nixpkgs-stable", "nixpkgs-unstable": "nixpkgs-unstable", + "nixpkgs-webui": "nixpkgs-webui", "nur": "nur", "nypkgs": "nypkgs", "plasma-manager": "plasma-manager", diff --git a/flake.nix b/flake.nix index aa9b2a8..8c0c6b4 100755 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,7 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs-last-unstable.url = "github:NixOS/nixpkgs/6b4955211758ba47fac850c040a27f23b9b4008f"; # 6027c30c8e9810896b92429f0092f624f7b1aace nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + nixpkgs-webui.url = "github:NixOS/nixpkgs/72353fc1fa61189fb76133d50c519e871c858c39"; # 72353fc1fa61189fb76133d50c519e871c858c39 # 5b38c7435fb1112a8b36b1652286996a7998c5b5 nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.05"; nixpkgs-fingerprint.url = "github:NixOS/nixpkgs/nixos-24.11"; nixos.url = "github:NixOS/nixpkgs/nixos-unstable"; diff --git a/modules/server/ai.nix b/modules/server/ai.nix index 253321c..a6ee6f0 100755 --- a/modules/server/ai.nix +++ b/modules/server/ai.nix @@ -6,13 +6,13 @@ ... }: let - last-stable = import inputs.nixos { system = "x86_64-linux"; }; # temp + unfree = import inputs.nixpkgs-webui { system = "x86_64-linux"; config.allowUnfree = true; }; # temp in { services = { open-webui = { - enable = true; - #package = last-stable.open-webui; + enable = false; + package = unfree.open-webui; host = "0.0.0.0"; port = 11111; openFirewall = true;