Add printer.

This commit is contained in:
2024-12-12 18:29:28 +01:00
parent 5419373095
commit 445a635689
4 changed files with 22 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
home = {

19
home/extras/printer.nix Normal file
View File

@@ -0,0 +1,19 @@
{ pkgs, ... }:
{
services.printing.drivers = [ pkgs.epson-escpr ];
hardware.printers = {
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";
ppdOptions = {
PageSize = "A4";
Ink = "Mono";
};
}];
ensureDefaultPrinter = "Epson-XP-520";
};
}

View File

@@ -17,6 +17,7 @@
addTV =
"xrandr --output eDP-1 --auto --output HDMI-1 --mode 1920x1080 --left-of eDP-1";
conWG = "ssh elias@logout.nonagon.dev -p 6969";
conWS = "ssh elias@192.168.31.200";
};
autosuggestion.enable = true;
enableCompletion = true;