sisyphus/nixos/modules/services/printing/default.nix

18 lines
354 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.services.printing;
in {
options.sisyphus.services.printing.enable = lib.mkEnableOption "Printing";
config = lib.mkIf cfg.enable {
services = {
printing.enable = true;
avahi = {
enable = true;
nssmdns = true;
openFirewall = true;
};
};
};
}