Skip to content

Commit 2fae9cd

Browse files
committed
llm this and llm that
1 parent c1bc29b commit 2fae9cd

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

home-manager/desktop/app.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,6 @@
131131

132132
(pkgs.callPackage ../../pkgs/pince.nix { })
133133
(pkgs.callPackage ../../pkgs/easyeda.nix { })
134+
(pkgs.callPackage ../../pkgs/transformerlab.nix { })
134135
];
135136
}

modules/services/n8n.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{ ... }:
2+
3+
{
4+
services.n8n = {
5+
enable = true;
6+
};
7+
8+
systemd.services.n8n.serviceConfig.User = "daniel";
9+
}

pkgs/transformerlab.nix

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
appimageTools,
3+
fetchurl,
4+
lib,
5+
makeDesktopItem,
6+
gobject-introspection,
7+
}:
8+
9+
let
10+
pname = "transformerlab";
11+
version = "0.20.2";
12+
13+
desktopItem = makeDesktopItem {
14+
name = pname;
15+
exec = pname;
16+
desktopName = pname;
17+
genericName = "Finetune LLMs";
18+
categories = [ "Application" ];
19+
};
20+
21+
in
22+
appimageTools.wrapType2 rec {
23+
inherit pname version;
24+
25+
src = fetchurl {
26+
url = "https://github.com/transformerlab/transformerlab-app/releases/download/v${version}/Transformer-Lab-${version}.AppImage";
27+
hash = "sha256-rQsVhQM8qjYMJCCbnOeiQdnHDtmBGyUbfj8dGq6Sr5Q=";
28+
};
29+
30+
buildInputs = [ gobject-introspection ];
31+
32+
extraInstallCommands = ''
33+
mkdir "$out/share"
34+
ln -s "${desktopItem}/share/applications" "$out/share/"
35+
'';
36+
37+
meta = with lib; {
38+
description = "Finetune LLMs";
39+
homepage = "https://transformerlab.ai/";
40+
license = licenses.gpl3Plus;
41+
platforms = lib.platforms.linux;
42+
};
43+
}

0 commit comments

Comments
 (0)