1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: add sane

This commit is contained in:
Kierán Meinhardt
2020-01-21 08:40:10 +01:00
parent 7a7f296c43
commit df0d5caa70

View File

@@ -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 = {