NixOS/nixpkgs SLOC report
As of 2026-08-04 (commit 8b6ce8cca68d), NixOS/nixpkgs contains 5,459,221 total lines: 4,609,745 code, 418,174 comments, 431,302 blank, across 44,733 files in 73 languages (top: Nix 75.7%). Counted with tokei via OctoCounts.
Repository size insights
This is a very large codebase by counted code lines. Code represents 84.4% of all lines, comments represent 7.7%, and the repository averages 103 code lines per file. Nix accounts for 75.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| Nix | 42019 | 4281250 | 3490430 | 390446 | 400374 |
| JSON | 665 | 944709 | 944703 | 0 | 6 |
| TOML | 33 | 61648 | 55111 | 880 | 5657 |
| Shell | 1127 | 53752 | 37528 | 6868 | 9356 |
| Python | 240 | 44859 | 35131 | 2549 | 7179 |
| YAML | 6 | 15742 | 15654 | 74 | 14 |
| Rust | 27 | 7185 | 5845 | 417 | 923 |
| Autoconf | 53 | 5232 | 4247 | 415 | 570 |
| Perl | 19 | 5167 | 3937 | 522 | 708 |
| JavaScript | 33 | 4672 | 3598 | 586 | 488 |
| C | 27 | 3201 | 2494 | 282 | 425 |
| BASH | 45 | 2821 | 2022 | 423 | 376 |
Top language (Nix 75.7%). Generated at 2026-08-04T06:45:35.602213424+00:00.
Report FAQ
How many lines of code does NixOS/nixpkgs have?
NixOS/nixpkgs has 5,459,221 total lines, including 4,609,745 code lines, 418,174 comment lines, and 431,302 blank lines.
How was the NixOS/nixpkgs line count measured?
OctoCounts resolved the public GitHub repository to commit 8b6ce8cca68d, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for NixOS/nixpkgs?
This OctoCounts report was generated from master at commit 8b6ce8cca68d on 2026-08-04T06:45:35.602213424+00:00.