feat(direnv): init #11
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Compat
Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: auxolotl/templates#11
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/direnv-init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pkgs.mkShell
be used? I've seen some discussion about it adding too much to the runtime closure, because it depends onstdenv.mkDerivation
(but I'm not sure what the alternative is)edit: closes #13
i would say no. this is a very simple template, and using flake-utils for one function isn't great
mkShellNoCC
. see belowand for a last comment: i honestly don't see much reason to make this a template. i feel we're already pushing it a bit with home-manager (as aux does not have a home-manager fork), and putting this on top of it would continue to be a duplication of documentation. i would much rather see a template like this in
nix-direnv
itself rather than here, as it's definitely not aux specific and the only thing differentiating it from a standard "devShell" template is an .envrcthis is very annoying for anyone who uses direnv but not nix(-direnv)
we can follow our own flake here.
mkShellNoCC
should also be used as to avoid any massive download of toolchains. as for the env var, we could put the commandecho $IN_SHELL
in a tutoriali assume at one point our goal is to diverge from upstream nix, so this might be useful. but on the other hand, we don't plan to do that for a while from what i understand so this might not be relevant now
also, another question: do we need a
shellHook
in here as well? maybe something that just runsecho Hello, $(whoami)!
or prints theIN_SHELL
env var?I think that would be pretty cool. And maybe change the
IN_SHELL
env var to direnv template?Also amazing work so far.
IN_SHELL = "direnv template"
made it seem like a variable which is important for direnv to load. renamed it toEXAMPLE_VAR
as that makes it more clear.Amazing just as a last request can you change the default template to the NixOS template.
done