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
|
|
@ -114,10 +114,13 @@
|
||||||
overrideFolders = false;
|
overrideFolders = false;
|
||||||
tray.enable = true;
|
tray.enable = true;
|
||||||
};
|
};
|
||||||
|
ssh-agent = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
gpg-agent = {
|
gpg-agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultCacheTtl = 1800;
|
defaultCacheTtl = 1800;
|
||||||
enableSshSupport = true;
|
# enableSshSupport = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.go.enable = true;
|
programs.go.enable = true;
|
||||||
|
|
|
||||||
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