experimental msty-sidecar

This commit is contained in:
m3tam3re 2025-04-29 15:02:58 +02:00
parent e461fc494a
commit b98fc0f6ef
4 changed files with 43 additions and 0 deletions

View File

@ -103,6 +103,7 @@
# graphviz # graphviz
# ksnip # ksnip
msty msty
msty-sidecar
nwg-look nwg-look
# pamixer # pamixer
# pavucontrol # pavucontrol

View File

@ -24,6 +24,9 @@ in {
else null; else null;
host = "[::]"; host = "[::]";
openFirewall = true; openFirewall = true;
environmentVariables = {
OLLAMA_ORIGINS = "https://msty.studio";
};
}; };
nixpkgs.config = { nixpkgs.config = {
rocmSupport = config.services.xserver.videoDrivers == ["amdgpu"]; rocmSupport = config.services.xserver.videoDrivers == ["amdgpu"];

View File

@ -1,6 +1,7 @@
{pkgs, ...}: { {pkgs, ...}: {
# Define your custom packages here # Define your custom packages here
msty = pkgs.callPackage ./msty {}; msty = pkgs.callPackage ./msty {};
msty-sidecar = pkgs.callPackage ./msty-sidecar {};
zellij-ps = pkgs.callPackage ./zellij-ps {}; zellij-ps = pkgs.callPackage ./zellij-ps {};
aider-chat-env = pkgs.callPackage ./aider-chat-env {}; aider-chat-env = pkgs.callPackage ./aider-chat-env {};
code2prompt = pkgs.callPackage ./code2prompt {}; code2prompt = pkgs.callPackage ./code2prompt {};

View File

@ -0,0 +1,38 @@
{
appimageTools,
fetchurl,
nodejs, # Add Node.js
nodePackages, # For npx
uv, # For uv/uvx
python3, # For Python 3
makeWrapper, # For wrapping the binary with the correct PATH
}: let
pname = "msty-sidecar";
version = "1.9.2";
src = fetchurl {
url = "https://sidecar-assets.msty.studio/prod/latest/linux/amd64/MstySidecar_x86_64_amd64.AppImage";
sha256 = "sha256-UhsokCG0NPqn5nhn//AaIuY6sWlZkejNlqMEyN4Opqg=";
};
appimageContents = appimageTools.extractType2 {inherit pname version src;};
in
appimageTools.wrapType2 {
inherit pname version src;
nativeBuildInputs = [makeWrapper];
extraPkgs = pkgs: [
nodejs
nodePackages.npm
uv
python3
];
extraInstallCommands = ''
install -m 444 -D ${appimageContents}/mstysidecar.desktop -t $out/share/applications
substituteInPlace $out/share/applications/mstysidecar.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
install -m 444 -D ${appimageContents}/mstysidecar.png \
$out/share/icons/hicolor/256x256/apps/mstysidecar.png
wrapProgram $out/bin/${pname} \
--prefix PATH : ${nodejs}/bin:${nodePackages.npm}/bin:${uv}/bin:${python3}/bin
'';
}