Feat: modularized hh1 printing.
This commit is contained in:
parent
f622009e87
commit
d98f41f2a5
3 changed files with 26 additions and 16 deletions
23
system/hardware/printer.nix
Normal file
23
system/hardware/printer.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.niksos.hardware.printer {
|
||||
services.printing = {
|
||||
enable = true;
|
||||
startWhenNeeded = true;
|
||||
};
|
||||
hardware.printers = {
|
||||
ensureDefaultPrinter = "Broeder";
|
||||
ensurePrinters = [
|
||||
{
|
||||
deviceUri = "ipp://192.168.1.33/ipp";
|
||||
location = "home";
|
||||
name = "Broeder";
|
||||
model = "everywhere";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue