18 lines
608 B
Nix
18 lines
608 B
Nix
# The `dev` command (pkgs/dev-shell) for the owner: enter, combine and
|
|
# auto-activate (direnv) the dev shells of this flake (modules/dev/shells,
|
|
# mechanism in modules/flake/shells.nix). It finds the flake through NH_FLAKE
|
|
# (programs.nh.flake, modules/core/nix.nix). Inside a shell the prompt shows
|
|
# dev:<name> (DEV_SHELL, set by every shell).
|
|
{
|
|
flake.modules.homeManager.dev-shells =
|
|
{ pkgs, ... }:
|
|
{
|
|
home.packages = [ pkgs.dev-shell ];
|
|
|
|
programs.starship.settings.env_var.DEV_SHELL = {
|
|
format = "[dev:$env_value]($style) ";
|
|
style = "bold purple";
|
|
};
|
|
};
|
|
}
|