task | home - enable ssh-agent, remove ssh-agent from gpg-agent
This commit is contained in:
parent
8d235a456c
commit
bc30c3ad1d
2 changed files with 28 additions and 1 deletions
24
hosts/workstation/lmstudio.nix
Normal file
24
hosts/workstation/lmstudio.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
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 {
|
||||
options.lmstudio = {enable = mkEnableOption "is lmstudio host";};
|
||||
config = mkIf cfg.enable {
|
||||
services.lmstudio = {
|
||||
enable = true;
|
||||
environment.systemPackages = [ lmStudio ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue