doc/src/modules: simplify usage of nix overrides - #2430
Conversation
trueNAHO
left a comment
There was a problem hiding this comment.
Path-like1 syntax is honoured by nix. This saves us a little typing.
Combined with tilde expansion by the shell, we go from:
nixos-rebuild switch --input-override stylix git+file:/home/user/path/to/stylixto:
nixos-rebuild switch --input-override stylix ~/path/to/stylix
Thanks for submitting this simplification. Should we wait until this feature is supported by the minimum Nix version? For example, the internal path: simplification is intentionally postponed for the same reason:
# We need to define the dev-flake-parts, dev-nixpkgs, and dev-systems inputs # so that other inputs can follow it. They are prefixed with 'dev-' to avoid # shadowing public flake inputs, which could affect local testing with # --override-input. # # TODO: Remove the /flake/dev/public-and-dev-version-consistency.nix checks # and replace # # [...] # # with # # [...] # # once 26.05 is released, giving non-flake end-users and Stylix # contributors two LTS releases to adopt Nix 2.26+ [1]. Note that # non-nixpkgs public flake inputs should be disabled. # # [1]: https://github.com/NixOS/nix/blob/d4f67fd46dfe2bc950bdfa14273f87b8a4c32e47/doc/manual/source/release-notes/rl-2.26.md?plain=1#L3-L11
Footnotes
Oh, I wasn’t aware of this. I just checked that EDIT: Note to self: I keep forgetting that there is a Nix audience outside of NixOS (droid, …) and thus it makes perfect sense to have Nix LTS releases with a different cadence than NixOS’ We’ll put it in the backburner, then. Ah, sorry for the close + open, must have pressed the wrong button 😅 |
e55b8f0 to
2dad5cd
Compare
Path-like¹ syntax is honoured by nix. This saves us a little typing. ¹: https://nix.dev/manual/nix/2.34/nix-2.34.html#path-like-syntax Co-authored-by: Noah Biewesch <dev@noahbiewesch.com>
2dad5cd to
ad266e1
Compare
|
(due to a git misconfiguration on my part, I did a force-push which I shouldn’t have; the rest have been to restore the previous state, plus a rebase on top of |
|
(also, if you could mark the changes requested as done, we can clear that one out at least). |
EDIT: Frozen until the minimal nix version reaches 2.34.
Path-like1 syntax is honoured by nix. This saves us a little typing.
Combined with tilde expansion by the shell, we go from:
to:
nixos-rebuild switch --input-override stylix ~/path/to/stylixThis is a follow-up of #1261.
Footnotes
https://nix.dev/manual/nix/2.34/nix-2.34.html#path-like-syntax ↩
Checked manually following https://nix-community.github.io/stylix/development_environment.html#documentation ↩