mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-31 01:48:52 -08:00
26 lines
521 B
Nix
26 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;
|
||
|
};
|
||
|
};
|
||
|
}
|