nextcloud for calendars
This commit is contained in:
parent
c5c4ff3925
commit
6fe1b261d5
8 changed files with 102 additions and 82 deletions
46
host/roam/nextcloud.nix
Normal file
46
host/roam/nextcloud.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
pkgs,
|
||||
secrets,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
hostName = "nextcloud.hdohmen.de";
|
||||
in
|
||||
{
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
inherit hostName;
|
||||
package = pkgs.nextcloud32;
|
||||
https = true;
|
||||
configureRedis = true;
|
||||
datadir = "/data/nextcloud";
|
||||
database.createLocally = true;
|
||||
extraAppsEnable = true;
|
||||
extraApps = {
|
||||
inherit (config.services.nextcloud.package.packages.apps)
|
||||
news
|
||||
contacts
|
||||
calendar
|
||||
tasks
|
||||
;
|
||||
};
|
||||
config = {
|
||||
adminuser = "admin";
|
||||
adminpassFile = config.age.secrets.nextcloud-admin-password.path;
|
||||
dbtype = "pgsql";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${hostName} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
|
||||
age.secrets.nextcloud-admin-password = {
|
||||
file = secrets.roam."nextcloud-admin-password.age";
|
||||
owner = "nextcloud";
|
||||
group = "nextcloud";
|
||||
mode = "440";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue