Add printer
This commit is contained in:
parent
639bce933f
commit
776bead26e
17
hardware/printer/hp-laserjet-p1005.nix
Normal file
17
hardware/printer/hp-laserjet-p1005.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
# https://nixos.wiki/wiki/Printing
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = with pkgs; [ foo2zjs cups-filters ];
|
||||
#services.printing.drivers = with pkgs; [ hplipWithPlugin cups-filters ];
|
||||
|
||||
#hardware.printers.ensureDefaultPrinter = lib.mkDefault "HP_LaserJet_P1005";
|
||||
hardware.printers.ensurePrinters = lib.singleton {
|
||||
name = "HP_LaserJet_P1005";
|
||||
deviceUri = "usb://HP/LaserJet%20P1005?serial=BC0CAEQ"; # `lpstat -s`
|
||||
model = "HP-LaserJet_P1005.ppd.gz"; # `lpinfo -m`
|
||||
#location = "";
|
||||
description = "Laser printer";
|
||||
ppdOptions.PageSize = "A4";
|
||||
};
|
||||
}
|
@ -22,6 +22,7 @@
|
||||
./hardware-configuration.nix
|
||||
../../hardware/gpu/cuda.nix
|
||||
../../hardware/gpu/intel.nix
|
||||
../../hardware/printer/hp-laserjet-p1005.nix
|
||||
../../profiles/auto-upgrade.nix
|
||||
|
||||
../../users # home-manager
|
||||
@ -94,7 +95,6 @@
|
||||
/**/
|
||||
#TODO: avahi? resolved? https://git.pvv.ntnu.no/Drift/pvv-nixos-config/src/main/base.nix#L15-L18
|
||||
|
||||
|
||||
# Installed system packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
cage
|
||||
|
Loading…
Reference in New Issue
Block a user