init xandikos as calendar.r

This commit is contained in:
lassulus 2022-11-28 17:40:13 +01:00
parent dcab6a00f6
commit b726b7588d
3 changed files with 36 additions and 0 deletions

View File

@ -78,6 +78,7 @@ in {
"build.r" "build.r"
"build.hotdog.r" "build.hotdog.r"
"ca.r" "ca.r"
"calendar.r"
"cgit.hotdog.r" "cgit.hotdog.r"
"irc.r" "irc.r"
"wiki.r" "wiki.r"

View File

@ -13,6 +13,8 @@
<stockholm/krebs/2configs/acme.nix> <stockholm/krebs/2configs/acme.nix>
<stockholm/krebs/2configs/mud.nix> <stockholm/krebs/2configs/mud.nix>
<stockholm/krebs/2configs/cal.nix>
## shackie irc bot ## shackie irc bot
<stockholm/krebs/2configs/shack/reaktor.nix> <stockholm/krebs/2configs/shack/reaktor.nix>
]; ];

33
krebs/2configs/cal.nix Normal file
View File

@ -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}/";
};
};
}