1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

starship: condition nushell integration on nushell 0.73+ (#3776)

Older versions are not supported: https://starship.rs/#nushell
This commit is contained in:
Naïm Favier 2023-03-17 14:11:30 +01:00 committed by GitHub
parent b832390db3
commit c7231c06e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 != { }) {