nix/module/Print.nix
2024-11-06 01:07:30 +03:00

22 lines
331 B
Nix

{
config,
lib,
pkgs,
util,
...
}: let
cfg = config.module.print;
in {
options.module.print.enable = lib.mkEnableOption "the support for printers.";
config = lib.mkIf cfg.enable {
services.printing = {
enable = true;
clientConf = util.trimTabs ''
DigestOptions DenyMD5
ServerName 10.0.0.1
'';
};
};
}