nixos/modules/desktop/printing/default.nix

28 lines
424 B
Nix
Raw Normal View History

2024-07-05 21:03:57 +04:00
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.printing;
in {
options.modules.desktop.printing = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
# enable printing itself
services.printing.enable = true;
# autodiscovery of printers
services.avahi = {
enable = true;
2024-07-05 21:05:03 +04:00
nssmdns4 = true;
2024-07-05 21:03:57 +04:00
openFirewall = true;
};
};
}