mirror of
https://github.com/Ascyii/nixos.git
synced 2025-12-31 22:44:23 -05:00
36 lines
839 B
Nix
36 lines
839 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# For this a disk with the label nextcloud is required
|
|
|
|
# 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";
|
|
};
|
|
}
|
|
|