Unverified Commit 74c30916 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

nixos/roundcube: round max attachment size to next integer

Closes #409665

Now that minver is 2.18, we can just use `builtins.ceil` for that.
parent 68fdcd0b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -100,7 +100,8 @@ in
    maxAttachmentSize = lib.mkOption {
      type = lib.types.int;
      default = 18;
      apply = configuredMaxAttachmentSize: "${toString (configuredMaxAttachmentSize * 1.37)}M";
      apply =
        configuredMaxAttachmentSize: "${toString (builtins.ceil (configuredMaxAttachmentSize * 1.37))}M";
      description = ''
        The maximum attachment size in MB.
        [upstream issue comment]: https://github.com/roundcube/roundcubemail/issues/7979#issuecomment-808879209