ruffsl@programming.dev to Nix / NixOS@programming.devEnglish · 13 days agoAngle brackets in a Nix flake worldfzakaria.comexternal-linkmessage-square9linkfedilinkarrow-up117arrow-down10file-text
arrow-up117arrow-down1external-linkAngle brackets in a Nix flake worldfzakaria.comruffsl@programming.dev to Nix / NixOS@programming.devEnglish · 13 days agomessage-square9linkfedilinkfile-text
minus-squarebalsoft@lemmy.mllinkfedilinkEnglisharrow-up3·13 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·12 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·12 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·13 days agoAny sites you can link that explain the differences and how to use it?
minus-squarebalsoft@lemmy.mllinkfedilinkEnglisharrow-up2·13 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.
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.