diff --git a/.viminfo b/.viminfo deleted file mode 100644 index f79d6f5..0000000 --- a/.viminfo +++ /dev/null @@ -1,122 +0,0 @@ -# This viminfo file was generated by Vim 9.1. -# You may edit it if you're careful! - -# Viminfo version -|1,4 - -# Value of 'encoding' when this file was written -*encoding=utf-8 - - -# hlsearch on (H) or off (h): -~h -# Last Search Pattern: -~Msle0~/} - -# Command Line History (newest to oldest): -:wq -|2,0,1767395245,,"wq" - -# Search String History (newest to oldest): -? } -|2,1,1767395059,,"}" -? \ -|2,1,1767395050,,"\\" -? \ -|2,1,1767395031,,"\\" - -# Expression History (newest to oldest): - -# Input Line History (newest to oldest): - -# Debug Line History (newest to oldest): - -# Registers: -""- CHAR 0 - # -|3,1,36,0,1,0,1767395242,"#" - -# File marks: -'0 102 10 ~/flake.nix -|4,48,102,10,1767395245,"~/flake.nix" -'1 92 10 ~/flake.nix -|4,49,92,10,1767395070,"~/flake.nix" -'2 92 10 ~/flake.nix -|4,50,92,10,1767395070,"~/flake.nix" -'3 17 4 ~/home/xdg.nix -|4,51,17,4,1767395009,"~/home/xdg.nix" - -# Jumplist (newest first): --' 102 10 ~/flake.nix -|4,39,102,10,1767395245,"~/flake.nix" --' 92 10 ~/flake.nix -|4,39,92,10,1767395234,"~/flake.nix" --' 92 10 ~/flake.nix -|4,39,92,10,1767395070,"~/flake.nix" --' 102 10 ~/flake.nix -|4,39,102,10,1767395059,"~/flake.nix" --' 100 12 ~/flake.nix -|4,39,100,12,1767395050,"~/flake.nix" --' 100 12 ~/flake.nix -|4,39,100,12,1767395050,"~/flake.nix" --' 96 12 ~/flake.nix -|4,39,96,12,1767395031,"~/flake.nix" --' 96 12 ~/flake.nix -|4,39,96,12,1767395031,"~/flake.nix" --' 1 0 ~/flake.nix -|4,39,1,0,1767395014,"~/flake.nix" --' 1 0 ~/flake.nix -|4,39,1,0,1767395014,"~/flake.nix" --' 17 4 ~/home/xdg.nix -|4,39,17,4,1767395009,"~/home/xdg.nix" --' 17 4 ~/home/xdg.nix -|4,39,17,4,1767395009,"~/home/xdg.nix" --' 17 4 ~/home/xdg.nix -|4,39,17,4,1767395009,"~/home/xdg.nix" --' 17 4 ~/home/xdg.nix -|4,39,17,4,1767395009,"~/home/xdg.nix" --' 1 0 ~/home/xdg.nix -|4,39,1,0,1767394999,"~/home/xdg.nix" --' 1 0 ~/home/xdg.nix -|4,39,1,0,1767394999,"~/home/xdg.nix" --' 1 0 ~/home/xdg.nix -|4,39,1,0,1767394999,"~/home/xdg.nix" --' 1 0 ~/home/xdg.nix -|4,39,1,0,1767394999,"~/home/xdg.nix" - -# History of marks within files (newest to oldest): - -> ~/flake.nix - * 1767395243 0 - " 102 10 - ^ 92 11 - . 102 10 - + 95 12 - + 96 12 - + 97 12 - + 98 12 - + 99 12 - + 100 12 - + 101 12 - + 102 10 - + 93 10 - + 92 10 - + 93 10 - + 95 12 - + 96 12 - + 97 12 - + 98 12 - + 99 12 - + 100 12 - + 101 12 - + 102 10 - -> ~/home/xdg.nix - * 1767395008 0 - " 17 4 - ^ 17 5 - . 17 4 - + 14 4 - + 15 4 - + 16 4 - + 17 4 diff --git a/flake.nix b/flake.nix index 7544137..dc58b83 100644 --- a/flake.nix +++ b/flake.nix @@ -62,6 +62,10 @@ system = "x86_64-linux"; in { + packages.${system}.qwen-asr = + nixpkgs.legacyPackages.${system}.callPackage ./packages/qwen-asr.nix + { }; + # legolas nixosConfigurations.legolas = nixpkgs.lib.nixosSystem { inherit system; diff --git a/hosts/aragon/configuration.nix b/hosts/aragon/configuration.nix index c1149a4..f5cd622 100644 --- a/hosts/aragon/configuration.nix +++ b/hosts/aragon/configuration.nix @@ -57,6 +57,10 @@ services.desktopManager.gnome.enable = true; + environment.systemPackages = [ + (pkgs.callPackage ../../packages/qwen-asr.nix { }) + ]; + # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; diff --git a/logs/.3b25ae2de0fbeb00e6dda3e0073fa9cb0e57638a-audit.json b/logs/.3b25ae2de0fbeb00e6dda3e0073fa9cb0e57638a-audit.json deleted file mode 100644 index 0a6d9ac..0000000 --- a/logs/.3b25ae2de0fbeb00e6dda3e0073fa9cb0e57638a-audit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "keep": { - "days": true, - "amount": 14 - }, - "auditLog": "/root/nix-dotfiles-v2/logs/.3b25ae2de0fbeb00e6dda3e0073fa9cb0e57638a-audit.json", - "files": [ - { - "date": 1770986611784, - "name": "/root/nix-dotfiles-v2/logs/meiliSync-2026-02-13.log", - "hash": "7de8e8f093ec0024291182935955d48e6faa12c30d1281c4c40975ae0cedab3b" - } - ], - "hashType": "sha256" -} \ No newline at end of file diff --git a/logs/.b5209f00e6380d23f0ed6df28f46a1a7ee75e7db-audit.json b/logs/.b5209f00e6380d23f0ed6df28f46a1a7ee75e7db-audit.json deleted file mode 100644 index b1bde93..0000000 --- a/logs/.b5209f00e6380d23f0ed6df28f46a1a7ee75e7db-audit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "keep": { - "days": true, - "amount": 14 - }, - "auditLog": "/root/nix-dotfiles-v2/logs/.b5209f00e6380d23f0ed6df28f46a1a7ee75e7db-audit.json", - "files": [ - { - "date": 1770986611781, - "name": "/root/nix-dotfiles-v2/logs/error-2026-02-13.log", - "hash": "2533ea2611b1422793883fd7f9d44dd1322e7376a04debcfbed53c3a3196b26e" - } - ], - "hashType": "sha256" -} \ No newline at end of file diff --git a/packages/qwen-asr.nix b/packages/qwen-asr.nix new file mode 100644 index 0000000..162d70f --- /dev/null +++ b/packages/qwen-asr.nix @@ -0,0 +1,51 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + openblas, + pkg-config, + alsa-lib, +}: + +rustPlatform.buildRustPackage { + pname = "qwen-asr"; + version = "1.0.3"; + + src = fetchFromGitHub { + owner = "adrlau"; + repo = "QwenASR"; + rev = "v1.0.3"; + hash = "sha256-Ga52horbOHszNWTA3FWYQk0Awjx6QNJFQ97DD5os0fI="; + }; + + cargoHash = "sha256-eEr/QnbACtfUExqA4fYpTN2WVeWmKmSa0GwacAXzLIE="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + openblas + alsa-lib + ]; + + # Build only the CLI binary + cargoBuildFlags = [ + "--package" + "qwen-asr-cli" + ]; + + # Tests require a downloaded model and sample audio files + doCheck = false; + + env = { + RUSTFLAGS = "-C target-cpu=native"; + OPENBLAS_DIR = openblas; + }; + + meta = { + description = "Pure Rust CPU-only inference engine for Qwen3-ASR speech-to-text models"; + homepage = "https://github.com/adrlau/QwenASR"; + license = lib.licenses.mit; + mainProgram = "qwen-asr"; + platforms = lib.platforms.linux; + }; +}