dotfiles/modules/services/printing.nix

23 lines
388 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.my.services.printing;
in
{
options.my.services.printing.enable = mkEnableOption "printing";
config = lib.mkIf cfg.enable {
services = {
printing = {
enable = true;
drivers = with pkgs; [ epson-escpr2 ];
};
avahi = {
enable = true;
nssmdns4 = true;
};
};
};
}