nix/module/Print.nix

26 lines
354 B
Nix
Raw Normal View History

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