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

19 lines
354 B
Nix
Raw Permalink Normal View History

2023-10-19 20:58:15 +02:00
{ 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;
};
};
};
}