Enable flake development environments, similar to nix develop
, but in your own
shell.
Note: shellHook
will not be loaded.
To install the nix
plugin, run:
$ mise plugins install nix
In .mise.toml
, enable the nix
environment:
[env]
_.nix = true
This will automatically load the development environment from flake.nix
,
equivalent to entering the shell via nix develop
.
The following options are supported:
Option | Type | Default | Description |
---|---|---|---|
flake_lock |
string |
flake.lock |
Lock file to use |
profile_dir |
string |
.mise-nix |
Directory for keeping profile link |
For example, to use a specific lock-file, set the flake_lock
option:
[env]
_.nix = { flake_lock = "some-flake.lock" }