From bc30c3ad1d3665d610cd97b088dcd85bc55c1e0b Mon Sep 17 00:00:00 2001 From: Don Harper Date: Wed, 8 Apr 2026 07:20:46 -0500 Subject: [PATCH] task | home - enable ssh-agent, remove ssh-agent from gpg-agent --- home/common/default.nix | 5 ++++- hosts/workstation/lmstudio.nix | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 hosts/workstation/lmstudio.nix diff --git a/home/common/default.nix b/home/common/default.nix index 13b6945..f9b8d7a 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -114,10 +114,13 @@ overrideFolders = false; tray.enable = true; }; + ssh-agent = { + enable = true; + }; gpg-agent = { enable = true; defaultCacheTtl = 1800; - enableSshSupport = true; + # enableSshSupport = true; }; }; programs.go.enable = true; diff --git a/hosts/workstation/lmstudio.nix b/hosts/workstation/lmstudio.nix new file mode 100644 index 0000000..9c55369 --- /dev/null +++ b/hosts/workstation/lmstudio.nix @@ -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 ` 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 ]; + }; + }; +}