{ config, lib, inputs, pkgs, ... }: let inherit (lib) mkIf mkOption types ; cfg = config.programs.illogical-impulse; in { options = { programs.illogical-impulse = { settings = { simpleStarship = { enable = mkOption { type = types.bool; default = false; description = '' Uses Pure starship. ''; }; }; }; }; }; config = mkIf cfg.enable { imports = lib.mkIf cfg.settings.simpleStarship [ ./simple-starship.nix ]; home.file = { ".config/starship.toml" = mkIf (!cfg.settings.simpleStarship) { source = builtins.path {path = ../../.config/starship.toml;}; }; }; }; }