summaryrefslogtreecommitdiffstats
path: root/krebs/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-11-28 17:40:13 +0100
committerlassulus <lassulus@lassul.us>2022-11-28 17:40:13 +0100
commitb726b7588d2dcf83507ed138723efed73efebe9f (patch)
tree09c9f6df4d24e1330aa42a60309819466a3046af /krebs/2configs
parentdcab6a00f61af813c82afad48ae64aa69c0c0cb0 (diff)
init xandikos as calendar.r
Diffstat (limited to 'krebs/2configs')
-rw-r--r--krebs/2configs/cal.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/krebs/2configs/cal.nix b/krebs/2configs/cal.nix
new file mode 100644
index 000000000..90093e8eb
--- /dev/null
+++ b/krebs/2configs/cal.nix
@@ -0,0 +1,33 @@
+{ config, lib, pkgs, ... }:
+{
+ users.users.testing = {
+ uid = pkgs.stockholm.lib.genid_uint31 "testing";
+ isNormalUser = true;
+ openssh.authorizedKeys.keys = [
+ config.krebs.users.xkey.pubkey
+ config.krebs.users.lass.pubkey
+ ];
+ packages = [
+ pkgs.calendar-cli
+ pkgs.tmux
+ ];
+ };
+
+ services.xandikos = {
+ enable = true;
+ extraOptions = [
+ "--autocreate"
+ "--defaults"
+ "--current-user-principal /krebs"
+ "--dump-dav-xml"
+ ];
+ };
+
+ services.nginx = {
+ enable = true;
+
+ virtualHosts = {
+ "calendar.r".locations."/".proxyPass = "http://localhost:${toString config.services.xandikos.port}/";
+ };
+ };
+}