diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index 31136d7ec..dd4750ece 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -80,6 +80,14 @@ in { }; config = mkIf cfg.enable { + assertions = [{ + assertion = cfg.enableNushellIntegration + -> versionAtLeast config.programs.nushell.package.version "0.73"; + message = '' + Nushell integration for starship requires nushell 0.73 or later. + ''; + }]; + home.packages = [ cfg.package ]; xdg.configFile."starship.toml" = mkIf (cfg.settings != { }) {