print: initial config

This commit is contained in:
Rouven Seifert 2024-01-29 14:51:37 +01:00
parent 0e2d68fb26
commit a9f6bc3ed0
Signed by untrusted user: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
4 changed files with 71 additions and 16 deletions

View file

@ -73,6 +73,19 @@
listenAddresses = [ "0.0.0.0:631" ];
};
sops.secrets."print/smtp-password" = {
owner = config.services.print-interface.user;
group = config.services.print-interface.group;
};
services.print-interface = {
enable = true;
smtp = {
username = "print";
passwordFile = config.sops.secrets."print/smtp-password".path;
};
};
services.avahi = {
enable = true;
nssmdns = true;
@ -83,7 +96,10 @@
};
};
networking.firewall = {
allowedTCPPorts = [ 631 ];
allowedTCPPorts = [
631
config.services.print-interface.listenPort
];
allowedUDPPorts = [ 631 ];
};