task | add support for lmstudio as an optional build item
This commit is contained in:
parent
bc30c3ad1d
commit
9ae83b136b
3 changed files with 4 additions and 11 deletions
|
|
@ -28,6 +28,7 @@
|
||||||
gnome-calendar.enable = true;
|
gnome-calendar.enable = true;
|
||||||
};
|
};
|
||||||
primary.enable = false;
|
primary.enable = false;
|
||||||
|
lmstudio.enable = true;
|
||||||
ollama.enable = true;
|
ollama.enable = true;
|
||||||
wm = {sway.enable = true;};
|
wm = {sway.enable = true;};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ in {
|
||||||
./detect-reboot-needed.nix
|
./detect-reboot-needed.nix
|
||||||
./kmscon.nix
|
./kmscon.nix
|
||||||
./ollama.nix
|
./ollama.nix
|
||||||
|
./lmstudio.nix
|
||||||
./systemd.nix
|
./systemd.nix
|
||||||
../systemd-primary.nix
|
../systemd-primary.nix
|
||||||
./auto-cpufreq.nix
|
./auto-cpufreq.nix
|
||||||
|
|
@ -263,6 +264,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
graphics = {enable = true; };
|
||||||
bluetooth = {enable = true;};
|
bluetooth = {enable = true;};
|
||||||
sane = {
|
sane = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -6,19 +6,9 @@
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.lmstudio;
|
cfg = config.lmstudio;
|
||||||
lmStudio = pkgs.appimageRunner (pkgs.fetchurl {
|
|
||||||
# You should check the LM Studio website for the latest download link
|
|
||||||
url = "https://releases.lmstudio.ai/linux/x64/latest/LM_Studio-0.4.91.AppImage";
|
|
||||||
# IMPORTANT: You must update this hash whenever you change the URL
|
|
||||||
# Run `nix-prefetch-url --unpack <URL>` or just let Nix fail and provide the new hash
|
|
||||||
sha256 = "sha256-0000000000000000000000000000000000000000000=";
|
|
||||||
});
|
|
||||||
in {
|
in {
|
||||||
options.lmstudio = {enable = mkEnableOption "is lmstudio host";};
|
options.lmstudio = {enable = mkEnableOption "is lmstudio host";};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.lmstudio = {
|
environment.systemPackages = [ pkgs.lmstudio ];
|
||||||
enable = true;
|
|
||||||
environment.systemPackages = [ lmStudio ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue