Organizing your Nix configuration without flakes

As to why not use import "${nixpkgs}/nixos" , following the channels-utilizing convention of import <nixpkgs/nixos> ? Well, that was what I thought would look nicer as well, but that interface doesn’t allow for setting specialArgs, for some reason; the only arguments it accepts are configuration and modules . I might submit a pull request, but I can imagine there’s also just some reason for this choice that I don’t know.

By the way, there’s an open PR for allowing specialArgs the other way, courtesy of @bme:

And I’d personally use _module.args, where possible (which is settable via modules already).

5 Likes