host(kita): add roundcube

Changed files
+25 -2
systems
+1 -1
justfile
···
# build the current configuration
build system="" +extra_args="":
-
nixos-rebuild -v build --flake .#{{system}} --keep-going --accept-flake-config \
+
nixos-rebuild -v -L build --flake .#{{system}} --keep-going --accept-flake-config \
{{extra_args}}
{{ if system == "" {"nvd diff /run/current-system result"} else {""} }}
+1 -1
systems/kita/configuration.nix
···
imports = [
./certificates
./services
-
+
./networking.nix
];
+1
systems/kita/services/default.nix
···
{...}: {
imports = [
./fallback_page
+
./mail
];
}
+5
systems/kita/services/mail/default.nix
···
+
{...}: {
+
imports = [
+
./roundcube.nix
+
];
+
}
+17
systems/kita/services/mail/roundcube.nix
···
+
{
+
pkgs,
+
_utils,
+
...
+
}: {
+
services.roundcube = {
+
enable = true;
+
package = pkgs.roundcube.withPlugins (plugins: with plugins; [carddav contextmenu]);
+
dicts = with pkgs.aspellDicts; [en];
+
hostName = "webmail.soopy.moe";
+
};
+
+
services.nginx.virtualHosts."webmail.soopy.moe" = _utils.mkVhost {
+
enableACME = false;
+
useACMEHost = "kita-web.c.soopy.moe";
+
};
+
}