dotfiles/modules/nixos/services/printing/default.nix

21 lines
347 B
Nix
Raw Normal View History

2023-03-25 16:17:58 +00:00
{
config,
lib,
...
}: let
2023-03-25 16:17:58 +00:00
cfg = config.aa.apps.steam;
in {
options.aa.services.printing = with lib; {
2023-03-25 16:17:58 +00:00
enable = mkEnableOption "printing";
};
config = lib.mkIf cfg.enable {
2023-03-25 16:17:58 +00:00
# Setup printing over the network
services.printing.enable = true;
services.avahi = {
enable = true;
2024-02-06 04:30:30 +00:00
nssmdns4 = true;
2023-03-25 16:17:58 +00:00
};
};
}