mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 15:24:39 +02:00
38 lines
816 B
Nix
38 lines
816 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
currentSystemUser,
|
|
...
|
|
}:
|
|
{
|
|
services = {
|
|
nextcloud = {
|
|
enable = true;
|
|
package = pkgs.nextcloud33;
|
|
hostName = "nextcloud.patrickcanal.it";
|
|
https = false;
|
|
config = {
|
|
adminpassFile = config.sops.secrets.nextcloud_password.path;
|
|
dbtype = "sqlite";
|
|
adminuser = currentSystemUser;
|
|
};
|
|
settings = {
|
|
default_phone_region = "IT";
|
|
overwriteprotocol = "https";
|
|
mail_domain = "patrickcanal.it";
|
|
log_type = "file";
|
|
trusted_domains = [
|
|
"nextcloud.patrickcanal.it"
|
|
];
|
|
};
|
|
};
|
|
# Required to change nextcloud port
|
|
nginx.virtualHosts."${config.services.nextcloud.hostName}".listen = [
|
|
{
|
|
addr = "127.0.0.1";
|
|
port = 8004;
|
|
}
|
|
];
|
|
};
|
|
}
|