ruffsl@programming.dev to Nix / NixOS@programming.devEnglish · 12 days agoAngle brackets in a Nix flake worldfzakaria.comexternal-linkmessage-square9linkfedilinkarrow-up116arrow-down10file-textcross-posted to: hackernews@lemmy.bestiver.se
arrow-up116arrow-down1external-linkAngle brackets in a Nix flake worldfzakaria.comruffsl@programming.dev to Nix / NixOS@programming.devEnglish · 12 days agomessage-square9linkfedilinkfile-textcross-posted to: hackernews@lemmy.bestiver.se
minus-squaredegen@midwest.sociallinkfedilinkEnglisharrow-up7·12 days agoSooo 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
minus-squareDeebster@infosec.publinkfedilinkEnglisharrow-up6·12 days agoextraSpecialArgs has real_escape_string energy
minus-squaredegen@midwest.sociallinkfedilinkEnglisharrow-up1·12 days agoreally fits the snowflake vibe too
minus-squarebalsoft@lemmy.mllinkfedilinkEnglisharrow-up3·12 days agoBTW, you shouldn’t really need extraSpecialArgs in most cases; setting a _module.args config option should be enough.
minus-squaredegen@midwest.sociallinkfedilinkEnglisharrow-up2·11 days agoGotta 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 😂
minus-squarebalsoft@lemmy.mllinkfedilinkEnglisharrow-up1·11 days agoThis 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).
minus-squareInnerScientist@lemmy.worldlinkfedilinkEnglisharrow-up1·12 days agoAny sites you can link that explain the differences and how to use it?
minus-squarebalsoft@lemmy.mllinkfedilinkEnglisharrow-up2·12 days agoThere’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.
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.