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