forked from wurzel/fruitbasket
print: initial config
This commit is contained in:
parent
0e2d68fb26
commit
a9f6bc3ed0
4 changed files with 71 additions and 16 deletions
|
@ -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 ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue