mirror of
https://github.com/larstvei/nix-config.git
synced 2026-02-06 10:30:12 +00:00
Add the printer at work
This doesn't look great, but it works. Maybe I'll try to improve it later.
This commit is contained in:
parent
102c68ff73
commit
8b065ced4e
@ -3,6 +3,7 @@
|
||||
|
||||
imports = [
|
||||
../fonts
|
||||
./printing
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
|
||||
24
modules/nixos/printing/default.nix
Normal file
24
modules/nixos/printing/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [ pkgs.ghostscript ];
|
||||
};
|
||||
|
||||
hardware.printers = {
|
||||
ensureDefaultPrinter = "UiO-Print-Ricoh";
|
||||
ensurePrinters = [
|
||||
{
|
||||
name = "UiO-Print-Ricoh";
|
||||
location = "https://print.uio.no";
|
||||
deviceUri = "ipps://mobilityprint.uio.no:9164/printers/UiO-Print";
|
||||
model = "drv:///sample.drv/generic.ppd";
|
||||
ppdOptions = {
|
||||
"PageSize" = "A4";
|
||||
"Duplex" = "DuplexNoTumble";
|
||||
"auth-info-required" = "username,password";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user