nix/module/Print.nix

18 lines
321 B
Nix
Raw Normal View History

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
ServerName 192.168.1.2
'';
};
};
}