Skip to content

Instantly share code, notes, and snippets.

@mausch
mausch / flake.nix
Created January 9, 2026 08:50
csharp-ls
{
description = "csharp-ls language server";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/723a7b8c5ec99cb2275aadf2fd83f65d2c6dd6ec";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
@mausch
mausch / flake.nix
Last active January 8, 2026 15:05
dotnet-sherlock-flake.nix
{
description = "dotnet-sherlock-mcp MCP Server";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/723a7b8c5ec99cb2275aadf2fd83f65d2c6dd6ec";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs @ { flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
@mausch
mausch / flake.nix
Last active November 25, 2023 11:49
llama-cpp-python nix flake
{
# inputs.llama-cpp.url = "github:ggerganov/llama.cpp/47068e517004d90f13c16352bb3b4cafd53a00cd";
inputs.llama-cpp.url = "github:mausch/llama.cpp/4ec0000d119289f3545283651491b75080bd75bd";
inputs.nixpkgs.url = "github:nixos/nixpkgs/78058d810644f5ed276804ce7ea9e82d92bee293";
inputs.flake-utils.url = "github:numtide/flake-utils/f9e7cf818399d17d347f847525c5a5a8032e4e44";
outputs = { self, nixpkgs, flake-utils, llama-cpp }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
@mausch
mausch / .envrc
Last active May 9, 2023 11:13
devenv test
source_url "https://raw.githubusercontent.com/cachix/devenv/d1f7b48e35e6dee421cfd0f51481d17f77586997/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0="
use devenv
@mausch
mausch / flake.nix
Created April 14, 2023 10:21
Llama.cpp + Alpaca-30B
{
description = "llama.cpp running Alpaca-30B";
inputs = {
llama.url = "github:ggerganov/llama.cpp/aaf3b23debc1fe1a06733c8c6468fb84233cc44f";
flake-utils.url = "github:numtide/flake-utils/033b9f258ca96a10e543d4442071f614dc3f8412";
nixpkgs.url = "github:NixOS/nixpkgs/d9f759f2ea8d265d974a6e1259bd510ac5844c5d";
};
outputs = { self, flake-utils, llama, nixpkgs }:
@mausch
mausch / flake.nix
Last active June 14, 2025 16:46
llama-vicuna.nix
{
description = "llama.cpp running vicuna";
inputs = {
llama.url = "github:ggerganov/llama.cpp/aaf3b23debc1fe1a06733c8c6468fb84233cc44f";
flake-utils.url = "github:numtide/flake-utils/033b9f258ca96a10e543d4442071f614dc3f8412";
nixpkgs.url = "github:NixOS/nixpkgs/d9f759f2ea8d265d974a6e1259bd510ac5844c5d";
};
outputs = { self, flake-utils, llama, nixpkgs }:
@mausch
mausch / country_grid.sql.gz
Last active March 20, 2022 14:04
country_osm_grid for Nominatim
This file has been truncated, but you can view the full file.
@mausch
mausch / piano.sh
Created January 3, 2022 18:27
Pianoteq + rotate screen + music sheets
#!/usr/bin/env nix-shell
#! nix-shell -p xorg.xrandr -p chromium -p pianoteq.stage-6 -i bash
input="Elan Touchpad"
function restore {
xrandr -o normal
xinput set-prop "$input" --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
kill $!
}
@mausch
mausch / gist:1ce63b5caf6918c5b6e9773e3bd3d119
Created November 28, 2021 21:22
git flakes currentSystem error
building the system configuration...
error: attribute 'currentSystem' missing
at /nix/store/mk4x3mhmgmzx0j0dda26ay19x22yxbyj-source/pkgs/top-level/impure.nix:18:43:
17| # (build, in GNU Autotools parlance) platform.
18| localSystem ? { system = args.system or builtins.currentSystem; }
| ^
19|
@mausch
mausch / get-dotnet-deps.nix
Created August 8, 2021 22:38
WIP get nuget packages from packages.lock.json for nix
{ lockFile }:
let
pkgs = import <nixpkgs> {};
lib = pkgs.lib;
procLockFile =
lockFile:
let
# https://github.com/NuGet/NuGet.Client/blob/f24bad0668193ce21a1db8cabd1ce95ba509c7f0/src/NuGet.Core/NuGet.Packaging/PackageArchiveReader.cs#L431
# https://github.com/NuGet/NuGet.Client/blob/f24bad0668193ce21a1db8cabd1ce95ba509c7f0/src/NuGet.Core/NuGet.Packaging/PackageExtractor.cs#L487