diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2026-03-14 09:47:04 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2026-03-14 09:47:04 -0600 |
| commit | 432a8f4d22fd7ec5f5f5a63dc4ecb7efae472dd6 (patch) | |
| tree | a1d9cf3d8cd62806f7a56885be7616539548a240 | |
| parent | 1aaa3818f27d2743ea7e51434ef9b992f72c5153 (diff) | |
set up webdav for backups because synology is always down
| -rw-r--r-- | machines/doretta/default.nix | 2 | ||||
| -rw-r--r-- | modules/nixos/webdav.nix | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/machines/doretta/default.nix b/machines/doretta/default.nix index 59422b3..78b14dd 100644 --- a/machines/doretta/default.nix +++ b/machines/doretta/default.nix @@ -12,6 +12,8 @@ # ./website.nix ../../modules/nixos/binary-cache.nix + ../../modules/nixos/webdav.nix + # microvm host ../vm/foolcreek/default.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 ]; +} |
