Replace flake.nix with shell.nix for simpler NixOS dev environment

This commit is contained in:
2026-05-26 01:59:15 +08:00
parent 55a51a7668
commit c055a8ffb9
2 changed files with 15 additions and 21 deletions
+15
View File
@@ -0,0 +1,15 @@
{ pkgs ? import <nixpkgs> { config.allowUnfree = true; } }:
pkgs.mkShell {
buildInputs = with pkgs; [
portaudio
cudaPackages.cudatoolkit
uv
python314
];
shellHook = ''
export LD_LIBRARY_PATH="${pkgs.cudaPackages.cudatoolkit}/lib:$LD_LIBRARY_PATH"
echo "Dev shell ready - microphone input enabled"
'';
}