Formatting Nixpkgs with Silvan Mosberger
E40

Formatting Nixpkgs with Silvan Mosberger

https://www.youtube.com/@molybdenumsoftware

https://github.com/NixOS/rfcs/pull/101

https://github.com/NixOS/nixfmt

nixfmt created by https://serokell.io/

https://github.com/nix-community/nixpkgs-fmt

https://github.com/NixOS/rfcs/pull/166

https://github.com/kamadorueda/alejandra

https://piegames.de/
https://github.com/0x4A6F
https://github.com/tomberek
https://github.com/dasJ
https://nixos.org/community/teams/formatting/

https://github.com/numtide/treefmt

https://github.com/NixOS/nixpkgs/pull/322537
https://github.com/NixOS/nixpkgs/pull/322537#issuecomment-2532934880

https://www.tweag.io/
https://antithesis.com/

https://hintjens.gitbooks.io/social-architecture/content/chapter4.html

https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md

https://moduscreate.com/

Auto-generated chapters:

00:00 Introduction and Background
01:44 The Journey to Standardized Formatting
06:17 The Evolution of RFC 101 to 166
11:22 The Role of the Shepherd Team
15:59 Defining the Formatting Rules
19:51 Finalizing the RFC and Implementation
25:01 Implementation Insights and Challenges
27:23 Finalizing the Formatter and Addressing Issues
30:09 Tree-Wide Reformatting: Strategies and Challenges
34:15 Ensuring Consistency in Formatting
38:54 Future Plans for Formatting and Maintenance
46:51 Enhancing PR Review Processes
49:28 Streamlining Local Formatting with treefmt
53:14 Managing Version Control and Formatting Conflicts
55:45 The Role of the Formatting Team
57:16 Exploring Linting and Future Maintenance
01:01:02 Automation and Community Contributions
01:04:10 C4 Guidelines for Effective PR Reviews
01:07:30 The Future of Documentation and Automation
01:10:15 Motivation Behind Community Contributions


---

Ad transcript:

Adopting an unfamiliar technology such as Nix usually comes at a cost. Productivity takes a hit, some of the team find themselves preoccupied providing Nix support, anti-patterns emerge increasing technical debt and morale is affected.

Founded by my friend and mentor Jacek Galowicz, Nixcademy have brought hundreds of individuals up to speed with Nix.

Prevent technical debt, liberate your Nix experts and get on top of Nix and back to work early. Visit nixcademy.com.

Jacek tells me that most Nixcademy clients returned their investment in training in under three months.

They also provide free educational content that I recommend and a Nix newsletter that I subscribe to.

nixcademy.com.

Creators and Guests

Shahar
Host
Shahar "Dawn" Or
Author of the Full Time Nix podcast and open source contributor