dotfiles/modules/services/printing.nix

23 lines
387 B
Nix
Raw Normal View History

2022-07-15 13:11:54 +02:00
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.my.services.printing;
in
{
2022-10-15 20:00:09 +02:00
options.my.services.printing.enable = mkEnableOption "printing";
2022-07-15 13:11:54 +02:00
config = lib.mkIf cfg.enable {
services = {
printing = {
enable = true;
2022-07-30 16:37:57 +02:00
drivers = with pkgs; [ epson-escpr2 ];
2022-07-15 13:11:54 +02:00
};
avahi = {
enable = true;
nssmdns = true;
};
};
};
}