Add remarkable tools
This commit is contained in:
parent
8e15e71e2f
commit
5895441364
6 changed files with 65 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
./pass.nix
|
||||
./pcmanfm.nix
|
||||
./python.nix
|
||||
./remarkable
|
||||
./sound
|
||||
./sway
|
||||
./tmux.nix
|
||||
|
|
|
|||
8
home-manager/modules/remarkable/default.nix
Normal file
8
home-manager/modules/remarkable/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ nixosConfig, lib, ... }:
|
||||
|
||||
{
|
||||
imports = lib.optionals nixosConfig.jalr.gui.enable [
|
||||
./restream.nix
|
||||
./rmview.nix
|
||||
];
|
||||
}
|
||||
7
home-manager/modules/remarkable/restream.nix
Normal file
7
home-manager/modules/remarkable/restream.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ nixosConfig, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
restream
|
||||
];
|
||||
}
|
||||
28
home-manager/modules/remarkable/rmview.nix
Normal file
28
home-manager/modules/remarkable/rmview.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -29,6 +29,7 @@
|
|||
./podman.nix
|
||||
./printers
|
||||
./qbittorrent
|
||||
./remarkable.nix
|
||||
./sdr.nix
|
||||
./sshd.nix
|
||||
./sudo.nix
|
||||
|
|
|
|||
20
modules/remarkable.nix
Normal file
20
modules/remarkable.nix
Normal 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 = { };
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue