From 432a8f4d22fd7ec5f5f5a63dc4ecb7efae472dd6 Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Sat, 14 Mar 2026 09:47:04 -0600 Subject: set up webdav for backups because synology is always down --- modules/nixos/webdav.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/nixos/webdav.nix (limited to 'modules/nixos/webdav.nix') diff --git a/modules/nixos/webdav.nix b/modules/nixos/webdav.nix new file mode 100644 index 0000000..299cc4a --- /dev/null +++ b/modules/nixos/webdav.nix @@ -0,0 +1,17 @@ +{ config, ... }: { + services.webdav = { + enable = true; + settings = { + # only listen over tailscale, so weak auth ok. TODO: secrets management with sops or agenix + address = "100.64.0.2"; + port = 8080; + directory = "/srv/webdav"; + permissions = "RCUD"; + users = [{ + username = "defin"; + password = "password"; + }]; + }; + }; + networking.firewall.allowedTCPPorts = [ 8080 ]; +} -- cgit v1.2.3