mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-30 17:38:53 -08:00
25 lines
521 B
Nix
25 lines
521 B
Nix
{ 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;
|
|
};
|
|
};
|
|
}
|