File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 4949 systemd-networkd . enable = true ;
5050 } ;
5151 } ;
52-
52+ printing . enable = true ;
5353 virtualization . enable = true ;
5454
55+ avahi . enable = true ;
5556 bluetooth . enable = true ;
5657 catt . enable = true ;
5758 docker . enable = true ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ with lib;
1313 services . avahi = {
1414 enable = true ;
1515 nssmdns4 = true ;
16+ openFirewall = true ;
1617 } ;
1718 } ;
1819}
Original file line number Diff line number Diff line change 1+ {
2+ config ,
3+ lib ,
4+ pkgs ,
5+ ...
6+ } :
7+
8+ let
9+ cfg = config . host . printing ;
10+ in
11+ with lib ;
12+ {
13+ options = {
14+ host . printing . enable = mkEnableOption "printing capabilities" ;
15+ } ;
16+
17+ config = mkIf cfg . enable {
18+ host . avahi . enable = true ; # enable autodiscovery of network printers that support the IPP Everywhere protocol
19+
20+ services . printing = {
21+ enable = true ;
22+ drivers = with pkgs ; [
23+ brlaser
24+ ] ;
25+ } ;
26+ } ;
27+ }
You can’t perform that action at this time.
0 commit comments