task | home - enable ssh-agent, remove ssh-agent from gpg-agent

This commit is contained in:
Don Harper 2026-04-08 07:20:46 -05:00
parent 8d235a456c
commit bc30c3ad1d
2 changed files with 28 additions and 1 deletions

View file

@ -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;

View 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 ];
};
};
}