Added printing config

This commit is contained in:
Alejandro Angulo 2023-03-25 09:17:58 -07:00
parent f651667481
commit 56da54bc36
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 24 additions and 7 deletions

View file

@ -0,0 +1,23 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.apps.steam;
in {
options.aa.services.printing = with types; {
enable = mkEnableOption "printing";
};
config = mkIf cfg.enable {
# Setup printing over the network
services.printing.enable = true;
services.avahi = {
enable = true;
nssmdns = true;
};
};
}