install radicale
This commit is contained in:
parent
293305263f
commit
e8fb465e8c
4 changed files with 53 additions and 1 deletions
|
|
@ -17,12 +17,13 @@ in
|
||||||
paperless.enable = true;
|
paperless.enable = true;
|
||||||
prowlarr.enable = true;
|
prowlarr.enable = true;
|
||||||
radarr.enable = true;
|
radarr.enable = true;
|
||||||
|
radicale.enable = true;
|
||||||
sonarr.enable = true;
|
sonarr.enable = true;
|
||||||
qbittorrent.enable = true;
|
qbittorrent.enable = true;
|
||||||
vaultwarden.enable = true;
|
vaultwarden.enable = true;
|
||||||
vscode-server.enable = true;
|
vscode-server.enable = true;
|
||||||
|
|
||||||
users.groups.media = {};
|
users.groups.media = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
|
||||||
50
modules/nixos/features/radicale.nix
Normal file
50
modules/nixos/features/radicale.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
feature = "radicale";
|
||||||
|
port = "5003";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.${feature}.enable {
|
||||||
|
services = {
|
||||||
|
# service
|
||||||
|
radicale = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
server = {
|
||||||
|
hosts = [
|
||||||
|
"0.0.0.0:${port}"
|
||||||
|
"[::]:${port}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
auth = {
|
||||||
|
type = "htpasswd";
|
||||||
|
htpasswd_filename = config.age.secrets."radicale".path;
|
||||||
|
htpasswd_encryption = "plain";
|
||||||
|
};
|
||||||
|
storage = {
|
||||||
|
filesystem_folder = "/srv/radicale";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# reverse proxy
|
||||||
|
nginx = {
|
||||||
|
virtualHosts."${feature}.fi33.buzz" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "fi33.buzz";
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${port}";
|
||||||
|
# proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
age.secrets."radicale" = {
|
||||||
|
file = ../../../secrets/radicale.age;
|
||||||
|
owner = "radicale";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
|
||||||
|
}
|
||||||
BIN
secrets/radicale.age
Normal file
BIN
secrets/radicale.age
Normal file
Binary file not shown.
|
|
@ -21,6 +21,7 @@ in
|
||||||
"porkbun-api.age".publicKeys = users;
|
"porkbun-api.age".publicKeys = users;
|
||||||
"prowlarr.age".publicKeys = users;
|
"prowlarr.age".publicKeys = users;
|
||||||
"radarr.age".publicKeys = users;
|
"radarr.age".publicKeys = users;
|
||||||
|
"radicale.age".publicKeys = users;
|
||||||
"sonarr.age".publicKeys = users;
|
"sonarr.age".publicKeys = users;
|
||||||
"vaultwarden-admin.age".publicKeys = users;
|
"vaultwarden-admin.age".publicKeys = users;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue