helm/modules/services/calibre.nix

16 lines
332 B
Nix
Raw Normal View History

2020-03-28 22:48:43 -07:00
{ config, options, pkgs, lib, ... }:
with lib;
{
options.modules.services.calibre = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.services.calibre.enable {
services.calibre-server.enable = true;
networking.firewall.allowedTCPPorts = [ 8080 ];
};
}