2024-06-25 04:04:39 +03:00
|
|
|
{ pkgs, lib, config, ... }: with lib; let
|
|
|
|
cfg = config.module.print;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
module.print.enable = mkEnableOption "Add support for printers.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
clientConf = ''
|
|
|
|
DigestOptions DenyMD5
|
2024-08-14 02:19:47 +03:00
|
|
|
ServerName 10.0.0.1
|
2024-06-25 04:04:39 +03:00
|
|
|
'';
|
|
|
|
};
|
2024-03-04 00:34:39 +03:00
|
|
|
};
|
|
|
|
}
|