Files
FxNet/modules/sys/printing/default.nix
2025-09-02 22:43:40 +03:00

33 lines
549 B
Nix

{
lib,
config,
...
}:
{
options = with lib; {
services.printing = {
ricoh = {
enable = mkEnableOption "Enable Ricoh Printer";
};
};
};
config = {
virtualisation.oci-containers.containers = lib.mkIf config.services.printing.ricoh.enable {
ricoh = {
image = "ricoh-cups:latest";
autoStart = true;
extraOptions = [
"--device=/dev/bus/usb/005"
"--network=host"
];
};
};
networking.firewall.allowedTCPPorts = [
631
];
};
}