nixmodules
nixmodules copied to clipboard
Convert replit module to V2
Why
Convert replit module to V2 scheme.
What changed
- Moved dotreplit-lsp over
- Added a replit bundle
- Set the default enable value for replit bundle to true. This gives users the ability to opt-out by setting
bundles.replit.enable = false
Test
-
nix build .#v2.examples.replit
-
ls result
Re: https://github.com/replit/nixmodules/pull/314#discussion_r1568988605 it's possible to default Python's useSiteCustomize
to true when replit bundle is enabled, but I am not sure that's what we want, because a user wanting to disable the replit bundle doesn't mean they are not running in a repl.
a user wanting to disable the replit bundle doesn't mean they are not running in a repl.
agreed, looks like we'll want some stdenv-style magic attrs that represent the nature of the user's environment