Files
nixos/Droidnix/generated/modules/terminals/starship.nix
T
2026-03-19 08:39:16 +00:00

25 lines
616 B
Nix

{ lib, ... }:
let
# Absolute path to the Starship config in the flake
starshipAssets = ../../../assets/system/conf/starship.toml;
# Read the TOML file (or import if you need structured content)
starshipConfig = lib.importTOML starshipAssets;
# Toggle for enabling Starship
enableStarship = true;
in
{
# Declare an option so this module is configurable
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
# All runtime config goes under `config`
config = lib.mkIf enableStarship {
programs.starship = {
enable = true;
settings = starshipConfig;
};
};
}