mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: add sane
This commit is contained in:
@@ -1,16 +1,24 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
hp-driver = pkgs.hplipWithPlugin;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services.printing = {
|
services.printing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
drivers = [ pkgs.hplipWithPlugin ];
|
drivers = [ hp-driver ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# networking.hosts."192.168.178.27" = [ "officejet" ];
|
hardware.sane = {
|
||||||
|
enable = true;
|
||||||
|
extraBackends = [ hp-driver ];
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.me.extraGroups = [ "scanner" ];
|
||||||
|
|
||||||
hardware.printers.ensurePrinters = [
|
hardware.printers.ensurePrinters = [
|
||||||
{
|
{
|
||||||
name = "OfficeJet";
|
name = "OfficeJet";
|
||||||
location = "Living room";
|
location = "Zimmer";
|
||||||
deviceUri = "https://192.168.178.27";
|
deviceUri = "https://192.168.178.27";
|
||||||
model = "drv:///hp/hpcups.drv/hp-officejet_4650_series.ppd";
|
model = "drv:///hp/hpcups.drv/hp-officejet_4650_series.ppd";
|
||||||
ppdOptions = {
|
ppdOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user