mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
atuin: assert version >= 18.2.0 when daemon is enabled
This commit is contained in:
parent
33c236f1d5
commit
c56aa0f51d
1 changed files with 13 additions and 5 deletions
|
@ -145,11 +145,19 @@ in {
|
||||||
|
|
||||||
(mkIf cfg.daemon.enable (mkMerge [
|
(mkIf cfg.daemon.enable (mkMerge [
|
||||||
{
|
{
|
||||||
assertions = [{
|
assertions = [
|
||||||
assertion = isLinux || isDarwin;
|
{
|
||||||
message =
|
assertion = versionAtLeast cfg.package.version "18.2.0";
|
||||||
"The atuin daemon can only be configured on either Linux or macOS.";
|
message = ''
|
||||||
}];
|
The atuin daemon requires at least version 18.2.0 or later.
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
assertion = isLinux || isDarwin;
|
||||||
|
message =
|
||||||
|
"The atuin daemon can only be configured on either Linux or macOS.";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
programs.atuin.settings = { daemon = { enabled = true; }; };
|
programs.atuin.settings = { daemon = { enabled = true; }; };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue