Skip to content

Instantly share code, notes, and snippets.

@dacr
Created November 17, 2024 18:09
Show Gist options
  • Save dacr/3b2873cd53a2fc14261ffff7c415a924 to your computer and use it in GitHub Desktop.
Save dacr/3b2873cd53a2fc14261ffff7c415a924 to your computer and use it in GitHub Desktop.
flake configuration for lmstudio / published by https://github.com/dacr/code-examples-manager #bfaf2c5b-b796-4117-8c6b-2315b7cc15fa/8133e63db27da81e6c1b5fb5dced8583c82a2d18
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1731676054,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"utils": "utils"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils}:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
apps.default = {
type = "app";
program = "${pkgs.lmstudio}/bin/lmstudio";
};
});
}
## summary : flake configuration for lmstudio
## keywords : nix, flake, lmstudio, mistral, codestral, llama
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : bfaf2c5b-b796-4117-8c6b-2315b7cc15fa
## created-on : 2024-11-17T19:02:50+01:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : make serve
## attachments : flake.nix, flake.lock
all:
nix run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment