nixos-config/systems/x86_64-linux/stargate/services/nextcloud.nix

35 lines
711 B
Nix

{
lib,
pkgs,
inputs,
namespace,
system,
target,
format,
virtual,
systems,
config,
...
}:
with lib;
with lib.custom; {
sops.secrets."services/nextcloud" = {owner = "nextcloud";};
services.nextcloud = {
enable = true;
package = pkgs.nextcloud31;
database.createLocally = true;
config = {
dbtype = "pgsql";
adminpassFile = config.sops.secrets."services/nextcloud".path;
};
hostName = "nextcloud.kylekrein.com";
https = true;
extraApps = {
inherit (config.services.nextcloud.package.packages.apps) contacts calendar tasks whiteboard;
};
autoUpdateApps.enable = true;
extraAppsEnable = true;
configureRedis = false;
};
}