This commit is contained in:
Reid 2024-11-14 10:47:24 -08:00
parent 154474cb50
commit ef5a11042c
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.modules.hardware.print;
in {
options.modules.hardware.print = {
enable = mkEnableOption "Enable various print services";
};
config = mkIf cfg.enable {
services.printing.enable = true;
services.printing.startWhenNeeded = true; # i am not the avid printer user
services.printing.browsed.enable = true;
services.printing.drivers = with pkgs; [
# gutenprint is very generic and supports a lot of printers
gutenprint
gutenprintBin
# brother laser printers
brlaser
];
# network discovery
services.avahi = {
enable = true;
openFirewall = true;
nssmdns4 = true;
};
};
}