feat: add printing module

This commit is contained in:
Youwen Wu 2024-12-23 02:09:52 -08:00
parent a6224c13c2
commit c9c3e3f6cb
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -0,0 +1,25 @@
{ config, lib, ... }:
let
cfg = config.liminalOS.system.printing;
in
{
options.liminalOS.system.printing = {
enable = lib.mkOption {
type = lib.types.bool;
default = config.liminalOS.enable;
description = ''
Whether to set up default options for printing and printer discover on UNIX.
'';
};
};
config = lib.mkIf cfg.enable {
services.printing.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
};
}