helm/modules/services/calibre.nix
2020-03-29 01:55:14 -04:00

16 lines
332 B
Nix

{ 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 ];
};
}