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