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

24 lines
539 B
Nix

{ lib, ... }:
let
starshipAssets = ../../../assets/system/conf/starship.toml;
starshipConfig = lib.importTOML starshipAssets;
enableStarship = true;
in
{
# Option to enable Starship
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
# Config applied only if enabled
config = lib.mkIf enableStarship {
# Home Manager users block avoids undefined `programs`
home-manager.users.henrov = {
programs.starship = {
enable = true;
settings = starshipConfig;
};
};
};
}