Gabe Venberg
f9632c8fc3
Moved syncthing to system service Restic actually works now removed some old system configs. formatting.
30 lines
601 B
Nix
30 lines
601 B
Nix
{
|
|
inputs,
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
services.radicale = lib.mkIf (lib.hasAttrByPath ["sops" "secrets" "radicale-users"] config) {
|
|
enable = true;
|
|
settings = {
|
|
auth = {
|
|
type = "htpasswd";
|
|
htpasswd_encryption = "md5";
|
|
htpasswd_filename = config.sops.secrets.radicale-users.path;
|
|
};
|
|
};
|
|
};
|
|
networking.firewall.allowedTCPPorts = [5232];
|
|
|
|
services.nginx.virtualHosts."cal.venberg.xyz" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:5232";
|
|
};
|
|
};
|
|
|
|
imports = [./nginx.nix];
|
|
}
|