nixos-config/hosts/phantom/nextcloud.nix

28 lines
563 B
Nix
Raw Normal View History

2024-03-28 21:56:52 -03:00
{ config, pkgs, inputs, ... }: {
services.nextcloud = {
enable = true;
package = pkgs.nextcloud27;
hostName = "cloud.lelgenio.xyz";
https = true;
config = {
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 = {
secrets.phantom-nextcloud = {
file = ../../secrets/phantom-nextcloud.age;
2024-03-28 21:56:52 -03:00
mode = "400";
owner = "nextcloud";
group = "nextcloud";
};
};
}