ooknet/modules/nixos/hardware/features/printing.nix

24 lines
400 B
Nix

{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
inherit (config.ooknet.hardware) features;
in {
config = mkIf (elem "printing" features) {
services = {
printing = {
enable = true;
drivers = [pkgs.hplip];
};
avahi = {
enable = true;
openFirewall = true;
nssmdns4 = true;
};
};
};
}