nixos/hosts/modules/server/nextcloud.nix
2024-06-18 11:26:35 +02:00

24 lines
551 B
Nix

# Nextcloud
{ pkgs, ... }:
let
hostname = "cloud.anotherhadi.com";
in
{
services.nextcloud = {
enable = true;
hostName = hostname;
https = true;
config = {
adminUser = "jack";
adminpassFile = "/etc/nextcloud/adminpassFile";
};
settings = {
trusted_domains = [ "localhost" "127.0.0.1" "192.168.2.23" "cloud.anotherhadi.com" ];
};
nginx.recommendedHttpHeaders = true;
};
services.nginx.virtualHosts.${hostname} = {
forceSSL = true;
enableACME = true;
}
}