mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Made it work
This commit is contained in:
33
modules/server/nextcloud.nix
Normal file
33
modules/server/nextcloud.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user