{ config, lib, ... }: let cfg = config.programs.illogical-impulse; simpleStarshipSettings = import ./simpleStarship.nix {inherit lib;}; in { imports = [ ../options.nix ]; config = lib.mkIf cfg.enable { programs.starship = lib.mkIf cfg.settings.simpleStarship.enable { enable = true; settings = simpleStarshipSettings; }; home.file.".config/starship.toml" = lib.mkIf (!cfg.settings.simpleStarship.enable) { source = builtins.path {path = ../../.config/starship.toml;}; }; }; }