nixos/services/nextcloud/default.nix

22 lines
397 B
Nix
Raw Normal View History

{
pkgs,
config,
...
}: {
services.nextcloud = {
enable = true;
package = pkgs.nextcloud26;
hostName = "cloud.xenia.me.uk";
config = {
adminuser = "xenia";
adminpassFile = "/etc/nextcloud/admin_secret.txt";
};
};
services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [
{
addr = "localhost";
port = 8000;
}
];
}