Compare commits

..

3 commits

Author SHA1 Message Date
Harald Hoyer 36cd114e72 feat(sgx): enable IPv4 and IPv6 support for Avahi
Updated Avahi service configuration to support both IPv4 and IPv6 addressing. This change includes enabling nssmdns4 and nssmdns6, along with setting ipv4 and ipv6 to true.
2024-10-16 14:43:36 +02:00
Harald Hoyer 1e96221b75 feat(homeprinter): enable Avahi service and configure firewall
Enable Avahi service to support mDNS for both IPv4 and IPv6. Add mDNS port 5353 to the allowed UDP ports in the firewall to ensure network discovery.
2024-10-16 14:43:21 +02:00
Harald Hoyer 82c476bd75 refactor: reorder nextcloud.nix configurations
Reorganized the configuration blocks for better readability. The `enabledPreviewProviders` list and `phpOptions` section now follow a more logical structure.
2024-10-16 14:43:00 +02:00
3 changed files with 31 additions and 18 deletions

View file

@ -16,6 +16,16 @@ in
gutenprint
];
services.avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = true;
ipv6 = true;
ipv4 = true;
};
networking.firewall.allowedUDPPorts = [ 5353 ];
hardware.printers.ensurePrinters = [
{
name = "Brother_DCP-L2530DW_series";

View file

@ -16,6 +16,23 @@
mail_smtpmode = "sendmail";
mail_sendmailmode = "pipe";
default_phone_region = "DE";
enabledPreviewProviders = [
"OC\\Preview\\BMP"
"OC\\Preview\\GIF"
"OC\\Preview\\HEIC"
"OC\\Preview\\JPEG"
"OC\\Preview\\Krita"
"OC\\Preview\\MP3"
"OC\\Preview\\MP4"
"OC\\Preview\\MarkDown"
"OC\\Preview\\Movie"
"OC\\Preview\\OpenDocument"
"OC\\Preview\\PDF"
"OC\\Preview\\PNG"
"OC\\Preview\\TXT"
"OC\\Preview\\WEBP"
"OC\\Preview\\XBitmap"
];
};
phpOptions = {
upload_max_filesize = lib.mkForce "1G";
@ -27,23 +44,6 @@
config.dbname = "nextcloud";
config.dbhost = "/run/postgresql";
config.dbuser = "nextcloud";
extraOptions.enabledPreviewProviders = [
"OC\\Preview\\BMP"
"OC\\Preview\\GIF"
"OC\\Preview\\HEIC"
"OC\\Preview\\JPEG"
"OC\\Preview\\Krita"
"OC\\Preview\\MP3"
"OC\\Preview\\MP4"
"OC\\Preview\\MarkDown"
"OC\\Preview\\Movie"
"OC\\Preview\\OpenDocument"
"OC\\Preview\\PDF"
"OC\\Preview\\PNG"
"OC\\Preview\\TXT"
"OC\\Preview\\WEBP"
"OC\\Preview\\XBitmap"
];
};
services.postgresql = {

View file

@ -20,7 +20,10 @@
services.avahi = {
enable = true;
nssmdns = true;
nssmdns4 = true;
nssmdns6 = true;
ipv6 = true;
ipv4 = true;
publish = {
enable = true;
userServices = true;