Make work

This commit is contained in:
2025-10-17 12:36:41 +03:00
parent 404a2ac233
commit b74ea12aea
9 changed files with 2222 additions and 10 deletions

19
.direnv/bin/nix-direnv-reload Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [[ ! -d "/home/ronyu/repos/open-webui-nix" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/home/ronyu/repos/open-webui-nix")"
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
exit 1
fi
# rebuild the cache forcefully
_nix_direnv_force_reload=1 direnv exec "/home/ronyu/repos/open-webui-nix" true
# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/home/ronyu/repos/open-webui-nix/.envrc"
# Also update the timestamp of whatever profile_rc we have.
# This makes sure that we know we are up to date.
touch -r "/home/ronyu/repos/open-webui-nix/.envrc" "/home/ronyu/repos/open-webui-nix/.direnv"/*.rc

View File

@@ -0,0 +1 @@
/nix/store/1c34w2s8xi84qnf7y04xx8zx0il8p69d-source

View File

@@ -0,0 +1 @@
/nix/store/rcsmdj802sk3w9l8m0b0bvdy0jiw2wgr-source

View File

@@ -0,0 +1 @@
/nix/store/q7a3ljdq35ilg80lx2mz7z0qawdgcr1h-nix-shell-env

File diff suppressed because it is too large Load Diff

1
.webui_secret_key Normal file
View File

@@ -0,0 +1 @@
1ZHDrIhBwP8F58QP

8
flake.lock generated
View File

@@ -2,16 +2,16 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1753722563, "lastModified": 1760524057,
"narHash": "sha256-FK8iq76wlacriq3u0kFCehsRYTAqjA9nfprpiSWRWIc=", "narHash": "sha256-EVAqOteLBFmd7pKkb0+FIUyzTF61VKi7YmvP1tw4nEw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "648f70160c03151bc2121d179291337ad6bc564b", "rev": "544961dfcce86422ba200ed9a0b00dd4b1486ec5",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixpkgs-unstable", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View File

@@ -2,12 +2,17 @@
description = "open webui flake"; description = "open webui flake";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
}; };
outputs = {...} @ inputs: let outputs = {nixpkgs, ...} @ inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in { in {
devShells.${system} = import ./shell.nix { devShells.${system} = import ./shell.nix {
inherit pkgs; inherit pkgs;

View File

@@ -1,8 +1,12 @@
{pkgs}: { {pkgs}: {
default = pkgs.mkShell { default = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs;
python312 [
]; python311
]
++ (with pkgs.python311Packages; [
grpcio
]);
shellHook = shellHook =
/* /*
bash bash