add webdav service

This commit is contained in:
XenGi 2026-06-18 22:48:48 +02:00
commit ca5881d12c
Signed by: xengi
SSH key fingerprint: SHA256:dM+fLZGsDvyv6kunjE8bGduL24VsCFB4LEOSdmRHdG0
4 changed files with 144 additions and 0 deletions

37
hosts/dav/default.nix Normal file
View file

@ -0,0 +1,37 @@
{ ... }:
{
imports = [
../common.nix
../../services/openssh.nix
../../services/prometheus-node.nix
./radicale.nix
];
networking = {
hostName = "dav";
firewall = {
allowedTCPPorts = [
80 # HTTP/1
443 # HTTP/2
];
allowedUDPPorts = [
443 # HTTP/3
];
};
};
services = {
openssh.banner = ''
__
/\ \
\_\ \ __ __ __
/'_` \ /'__`\ /\ \/\ \
/\ \L\ \/\ \L\.\_\ \ \_/ |
\ \___,_\ \__/.\_\\ \___/
\/__,_ /\/__/\/_/ \/__/
'';
};
system.stateVersion = "26.05";
}