mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +01:00
[backport 22.11] starship: condition nushell integration on nushell 0.73+ (#3777)
Older versions are not supported: https://starship.rs/#nushell
(cherry picked from commit a3b90e5762
)
This commit is contained in:
parent
74e0b590c0
commit
68163d27e9
1 changed files with 8 additions and 0 deletions
|
@ -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 != { }) {
|
||||
|
|
Loading…
Reference in a new issue