diff options
| -rw-r--r-- | hosts/radicale/default.nix | 3 | ||||
| -rw-r--r-- | hosts/radicale/radicale.nix | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/hosts/radicale/default.nix b/hosts/radicale/default.nix index f2d14fb..5b918b2 100644 --- a/hosts/radicale/default.nix +++ b/hosts/radicale/default.nix @@ -3,6 +3,9 @@ let mac = "02:00:00:00:00:02"; in { + imports = [ + ./radicale.nix + ]; sops.defaultSopsFile = ./secrets.yaml; sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; diff --git a/hosts/radicale/radicale.nix b/hosts/radicale/radicale.nix new file mode 100644 index 0000000..37de7b5 --- /dev/null +++ b/hosts/radicale/radicale.nix @@ -0,0 +1,18 @@ +{ ... }: +{ + services.radicale = { + enable = true; + settings = { + server = { + hosts = [ "0.0.0.0:5232" "[::]:5232" ]; + ssl = "False"; + }; + auth = { + type = "http_x_remote_user"; + }; + rights = { + type = "owner_only"; + }; + }; + }; +} |
