mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
22 lines
424 B
Nix
22 lines
424 B
Nix
|
|
{ config, ... }:
|
||
|
|
{
|
||
|
|
services.nextcloud = {
|
||
|
|
enable = true;
|
||
|
|
hostName = "cloud.liv.town";
|
||
|
|
https = true;
|
||
|
|
|
||
|
|
virtualHosts.${config.services.nextcloud.hostName} = {
|
||
|
|
forceSSL = true;
|
||
|
|
enableACME = true;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
security.acme = {
|
||
|
|
acceptTerms = true;
|
||
|
|
certs = {
|
||
|
|
${config.services.nextcloud.hostName}.email = "ahwx@ahwx.org";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|