2024-03-28 21:56:52 -03:00
|
|
|
{ config, pkgs, inputs, ... }: {
|
|
|
|
services.nextcloud = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.nextcloud27;
|
2024-05-11 18:00:19 -03:00
|
|
|
hostName = "cloud.lelgenio.com";
|
2024-03-28 21:56:52 -03:00
|
|
|
https = true;
|
|
|
|
config = {
|
2024-03-29 01:08:21 -03:00
|
|
|
adminpassFile = config.age.secrets.phantom-nextcloud.path;
|
2024-03-28 21:56:52 -03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-08 23:38:49 -03:00
|
|
|
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
};
|
|
|
|
|
2024-03-28 21:56:52 -03:00
|
|
|
age = {
|
2024-03-29 01:08:21 -03:00
|
|
|
secrets.phantom-nextcloud = {
|
|
|
|
file = ../../secrets/phantom-nextcloud.age;
|
2024-03-28 21:56:52 -03:00
|
|
|
mode = "400";
|
|
|
|
owner = "nextcloud";
|
|
|
|
group = "nextcloud";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|