diff options
| author | Grigory Shipunov | 2025-01-19 23:04:04 +0000 |
|---|---|---|
| committer | Grigory Shipunov | 2025-01-20 18:07:35 +0000 |
| commit | edc0ae406202658c3f17b7433694e942c62b38c7 (patch) | |
| tree | 896c347779be66acfa47d91903779c5414e70b1e /hosts | |
| parent | c3253a88e64ce5112f129919bb88023c9eea98a1 (diff) | |
add basic radicale config
Diffstat (limited to 'hosts')
| -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"; + }; + }; + }; +} |
