Compare commits

...

3 Commits

Author SHA1 Message Date
Giulio De Pasquale
ba39859e01 helix: added gopls 2024-01-09 17:33:23 +01:00
Giulio De Pasquale
3519e92d05 flake: update lock 2024-01-09 14:59:33 +01:00
Giulio De Pasquale
a30d0f2e68 llm: fixed upstream image for big-agi. use ollama with GPU support 2024-01-09 14:59:25 +01:00
3 changed files with 15 additions and 11 deletions

18
flake.lock generated
View File

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1703113038,
"narHash": "sha256-oxkyzjpD+mNT7arzU/zHrkNHLuY9tKwmnD2MNaZiSDw=",
"lastModified": 1704099619,
"narHash": "sha256-QRVMkdxLmv+aKGjcgeEg31xtJEIsYq4i1Kbyw5EPS6g=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0c2353d5d930c3d93724df6858aef064a31b3c00",
"rev": "7e398b3d76bc1503171b1364c9d4a07ac06f3851",
"type": "github"
},
"original": {
@ -23,11 +23,11 @@
},
"nixos-unstable": {
"locked": {
"lastModified": 1703013332,
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"lastModified": 1704538339,
"narHash": "sha256-1734d3mQuux9ySvwf6axRWZRBhtcZA9Q8eftD6EZg6U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"rev": "46ae0210ce163b3cba6c7da08840c1d63de9c701",
"type": "github"
},
"original": {
@ -39,11 +39,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1703163755,
"narHash": "sha256-5urf1hkKPpD+HfphQWUA4ogu2v5pfcWjxWArn/vYW4c=",
"lastModified": 1704795870,
"narHash": "sha256-M86cqEn65whEr2JC4yWVJXzGikqpt+2SzcSe3DOiRHQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "34309fb17d5c1e96f97274b21654712c8396813a",
"rev": "72f7568a6d748d87e878098957077118a6af91f8",
"type": "github"
},
"original": {

View File

@ -1,11 +1,14 @@
{ config, ... }:
{ config, pkgs, ... }:
let
domain = "pino.giugl.io";
backendPort = 3000;
frontendPort = 3002;
llama-cpp = pkgs.unstablePkgs.llama-cpp.override { cudaSupport = true; };
ollama = pkgs.unstablePkgs.ollama.override { inherit llama-cpp; };
in
{
environment.systemPackages = [ ollama ];
architect.vhost.${domain} = {
dnsInterfaces = [ "tailscale" ];
@ -20,7 +23,7 @@ in
virtualisation.oci-containers = {
containers = {
big-agi = {
image = "ghcr.io/enricoros/big-agi:main";
image = "ghcr.io/enricoros/big-agi:latest";
autoStart = true;
ports = [

View File

@ -71,6 +71,7 @@ in
ruff
shellcheck
shfmt
gopls
] ++ pythonPkgs ++ nodePkgs;
};
}