Files
NixOsConfig/modules/dev/dev-shells.nix
T
faumaray 079cceb554 update
Signed-off-by: faumaray <faumaray@gmail.com>
2026-10-29 16:02:14 +03:00

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";
};
};
}