Add remarkable tools

This commit is contained in:
Jakob Lechner 2023-11-25 03:43:51 +00:00
parent 8e15e71e2f
commit 5895441364
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
6 changed files with 65 additions and 0 deletions

View file

@ -27,6 +27,7 @@
./pass.nix
./pcmanfm.nix
./python.nix
./remarkable
./sound
./sway
./tmux.nix

View file

@ -0,0 +1,8 @@
{ nixosConfig, lib, ... }:
{
imports = lib.optionals nixosConfig.jalr.gui.enable [
./restream.nix
./rmview.nix
];
}

View file

@ -0,0 +1,7 @@
{ nixosConfig, lib, pkgs, ... }:
{
home.packages = with pkgs; [
restream
];
}

View file

@ -0,0 +1,28 @@
{ nixosConfig, lib, pkgs, ... }:
let
config = {
ssh = {
address = "remarkable";
auth_method = "key";
key = "~/.ssh/id_rsa";
};
orientation = "auto";
pen_size = 15;
pen_color = "red";
pen_trail = 200;
};
in
{
home.packages = with pkgs; [
(
pkgs.writeShellScriptBin "rmview" ''
export QT_QPA_PLATFORM=xcb
exec ${pkgs.rmview}/bin/rmview
''
)
];
xdg.configFile."rmview.json" = {
text = lib.generators.toJSON { } config;
};
}

View file

@ -29,6 +29,7 @@
./podman.nix
./printers
./qbittorrent
./remarkable.nix
./sdr.nix
./sshd.nix
./sudo.nix

20
modules/remarkable.nix Normal file
View file

@ -0,0 +1,20 @@
{ 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"
#};
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 = { };
}
];
}