mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Services] Fix print sharing
Opened a few ports, make CUPS listen on all IPv4 addresses. Enable System Config Printer by default.
This commit is contained in:
parent
83c6db86f7
commit
19504aadd8
1 changed files with 6 additions and 2 deletions
|
|
@ -53,8 +53,10 @@ in {
|
|||
openFirewall = true;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
networking.firewall.allowedUDPPorts = [ 22 ];
|
||||
networking.firewall.allowedTCPPorts = [ 22 ]
|
||||
++ optionals config.services.printing.enable [ 631 139 445 ];
|
||||
networking.firewall.allowedUDPPorts = [ 22 5353 ]
|
||||
++ optionals config.services.printing.enable [ 137 ];
|
||||
|
||||
services.rsyncd.enable = !desktopCfg.enable;
|
||||
|
||||
|
|
@ -68,6 +70,7 @@ in {
|
|||
enable = true;
|
||||
defaultShared = mkDefault true;
|
||||
browsing = mkDefault true;
|
||||
listenAddresses = [ "0.0.0.0:631" ];
|
||||
drivers = with pkgs; [
|
||||
hplipWithPlugin
|
||||
gutenprint
|
||||
|
|
@ -92,6 +95,7 @@ in {
|
|||
];
|
||||
webInterface = mkDefault true;
|
||||
};
|
||||
services.system-config-printer.enable = mkIf desktopCfg.enable true;
|
||||
|
||||
hardware.sane = mkIf desktopCfg.enable {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue