Files
nixos/modules/server/cloud.nix
2025-08-30 20:31:10 +02:00

34 lines
787 B
Nix

{ config, lib, pkgs, ... }:
{
# Setting the filesystem for nextcloud
fileSystems."/mnt/nextcloudStorage" = {
device = "/dev/disk/by-label/nextcloud";
options = [
"users"
];
};
# Activating the nextcloud servce not optimized
environment.etc."nextcloud-admin-pass".text = "PWD";
services.nextcloud = {
enable = true;
home = "/mnt/nextcloudStorage";
package = pkgs.nextcloud30;
hostName = "cloud.hahn1.one";
settings = {
trusted_domains = ["misox"];
};
config = {
adminpassFile = "/etc/nextcloud-admin-pass";
dbtype = "sqlite";
};
extraApps = {inherit (config.services.nextcloud.package.packages.apps) richdocuments news contacts calendar tasks;};
extraAppsEnable = true;
https = true;
configureRedis = true;
maxUploadSize = "1G";
};
}