{ lib, ... }: let starshipAssets = ../../../assets/system/conf/starship.toml; starshipConfig = lib.importTOML starshipAssets; enablestarship = true; # toggle on/off in { options.enablestarship = lib.mkEnableOption "Enable Starship prompt"; # Everything is wrapped safely in config config = lib.mkIf enablestarship { # Just symbolic references to files, no pkgs or recursive config programs.starship = { enable = true; settings = starshipConfig; }; }; }