22 lines
397 B
Nix
22 lines
397 B
Nix
|
{
|
||
|
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;
|
||
|
}
|
||
|
];
|
||
|
}
|