nixos-configuration/modules/remarkable.nix
2023-11-29 18:16:06 +00:00

22 lines
643 B
Nix

{ config, lib, ... }:
lib.mkIf config.jalr.gui.enable {
# allow port for reMarkable screen sharing
networking.firewall.allowedUDPPorts = [ 5901 ];
#services.printing.cups-pdf.instances.remarkable = {
# settings.Out = "socket://remarkable"
#};
# https://github.com/Evidlo/remarkable_printer needs to be
# installed on the reMarkable
hardware.printers.ensurePrinters = [
{
name = "remarkable";
description = "reMarkable virtual printer";
deviceUri = "socket://remarkable";
#location = "/var/spool/cups-pdf-pdf/users/\${USER}";
model = "CUPS-PDF_opt.ppd";
ppdOptions = { };
}
];
}