- cross-posted to:
- hackernews
Sooo right. Trying to learn nix, flakes, and home-manager in parallel without realizing
extraSpecialArgs
exists isn’t fun.Skill issue, maybe, but it’s an ergonomic issue too!
copes
extraSpecialArgs
hasreal_escape_string
energyreally fits the snowflake vibe too
BTW, you shouldn’t really need
extraSpecialArgs
in most cases; setting a_module.args
config option should be enough.Gotta love that I’ve had my daily use machine running nixos for a couple years now and I don’t even know what that is 😂
This is needed for Flake-based setups where you use some NixOS modules that aren’t in Nixpkgs (home-manager being the most common use-case).
Any sites you can link that explain the differences and how to use it?
There’s a short explanation in this section: https://nixos.org/manual/nixos/stable/#sec-option-types-submodule (look for
specialArgs
) and in this section: https://nixos.org/manual/nixpkgs/stable/#module-system-lib-evalModules-param-specialArgs. I don’t know whether it’s documented properly somewhere.
I have experimented with something very similar in the past. I think the main issue is that it is quite confusing to read, being familiar with what the old
<>
syntax does.