enable printing and add network printer

This commit is contained in:
Sam 2024-07-19 13:09:20 +01:00
parent c5da58fc3b
commit c9409866b7
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ pkgs, ... }:
{
services = {
printing = {
enable = true;
drivers = [ pkgs.gutenprint pkgs.hplip ];
};
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
};
hardware.printers = {
ensurePrinters = [
{
name = "HP_ENVY_6000";
description = "Network printer hosted on bob";
location = "bob";
deviceUri = "ipp://bob/printers/HP_ENVY_6000_series";
model = "everywhere";
ppdOptions = {
PageSize = "A4";
};
}
];
};
}

View File

@ -31,6 +31,7 @@ in
../common/optional/openssh.nix ../common/optional/openssh.nix
../common/optional/dwm.nix ../common/optional/dwm.nix
../common/optional/nfs-mounts/music.nix ../common/optional/nfs-mounts/music.nix
../common/optional/printing.nix
]; ];

View File

@ -28,6 +28,7 @@ in
../common/optional/openssh.nix ../common/optional/openssh.nix
../common/optional/persistence.nix ../common/optional/persistence.nix
../common/optional/gaming.nix ../common/optional/gaming.nix
../common/optional/printing.nix
]; ];