mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
16 lines
331 B
Nix
16 lines
331 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.myConfig.printing.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.printing.enable {
|
|
services.printing.enable = true;
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
}
|