1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +01:00

atuin: assert version >= 18.2.0 when daemon is enabled

This commit is contained in:
Varun Narravula 2024-10-19 16:59:15 -07:00
parent 4d7d797361
commit 0d09bde6ed
No known key found for this signature in database
GPG key ID: A1F17E43F6747FC0

View file

@ -145,11 +145,19 @@ in {
(mkIf cfg.daemon.enable (mkMerge [
{
assertions = [{
assertions = [
{
assertion = versionAtLeast cfg.package.version "18.2.0";
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; }; };
}