From edc0ae406202658c3f17b7433694e942c62b38c7 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Sun, 19 Jan 2025 23:04:04 +0000 Subject: [PATCH] add basic radicale config --- hosts/radicale/default.nix | 3 +++ hosts/radicale/radicale.nix | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 hosts/radicale/radicale.nix 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"; + }; + }; + }; +}