printer & openscad

add indent for openscad and fix printer
This commit is contained in:
2026-03-27 14:42:39 +01:00
parent eb67cd011d
commit 234e6c0813
3 changed files with 27 additions and 13 deletions

View File

@@ -3,17 +3,18 @@
{
services.printing.drivers = [ pkgs.epson-escpr ];
hardware.printers = {
ensurePrinters = [{
ensurePrinters = [
{
name = "Epson-XP-520";
location = "Home";
deviceUri = "http://192.168.178.34:631/ipp/print";
model =
"epson-inkjet-printer-escpr/Epson-XP-520_Series-epson-escpr-en.ppd";
deviceUri = "usb://EPSON/XP-520%20Series?serial=554656593133323698&interface=1";
model = "epson-inkjet-printer-escpr/Epson-XP-520_Series-epson-escpr-en.ppd";
ppdOptions = {
PageSize = "A4";
Ink = "Color";
};
}];
}
];
ensureDefaultPrinter = "Epson-XP-520";
};
}

View File

@@ -50,6 +50,12 @@
tex = [
"tex-fmt"
];
openscad = [
"squeeze_blanks"
"trim_whitespace"
"trim_newlines"
"scadstyle"
];
"_" = [
"squeeze_blanks"
"trim_whitespace"
@@ -97,6 +103,15 @@
tex-fmt = {
command = "tex-fmt";
};
scadstyle = {
"inherit" = true;
prepend_args = [
"--indent-type"
"Spaces"
"--indent-width"
"2"
];
};
};
};
};

View File

@@ -67,8 +67,6 @@
map = {
normal = {
"Super+Shift Return" = "spawn alacritty";
# Messages
"Control+Super W" = "spawn 'printf \"Hello from Wayland!\" | dunstify -'";
# System
"Super P" = "spawn 'rofi -show drun'";
"Super+Shift C" = "close";