16 lines
332 B
Nix
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 ];
|
|
};
|
|
}
|