Fixed up NextCloud, finally setup

This commit is contained in:
Chris Toph 2024-09-17 21:34:11 -04:00
parent dd3bef33b0
commit 74fa47c867
5 changed files with 16 additions and 9 deletions

View file

@ -4,12 +4,20 @@
programs.fuse.userAllowOther = true; programs.fuse.userAllowOther = true;
fileSystems."/pool" = { fileSystems = {
"/pool" = {
fsType = "fuse.mergerfs"; fsType = "fuse.mergerfs";
device = "/mnt/data*"; device = "/mnt/data*";
options = ["direct_io" "defaults" "allow_other" "minfreespace=50G" "fsname=mergerfs" "category.create=mfs" "nonempty"]; options = ["direct_io" "defaults" "allow_other" "minfreespace=50G" "fsname=mergerfs" "category.create=mfs" "nonempty"];
}; };
"/var/lib/nextcloud" = {
fsType = "none";
device = "/pool/NextCloud";
options = ["bind" "nofail"];
};
};
# Set your system kind (needed for flakes) # Set your system kind (needed for flakes)
nixpkgs.hostPlatform = "x86_64-linux"; nixpkgs.hostPlatform = "x86_64-linux";
} }

View file

@ -25,8 +25,7 @@
extraAppsEnable = true; extraAppsEnable = true;
extraApps = with config.services.nextcloud.package.packages.apps; { extraApps = with config.services.nextcloud.package.packages.apps; {
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json # https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json
inherit calendar contacts mail notes tasks; inherit calendar contacts mail notes tasks registration spreed;
# inherit calendar contacts mail notes onlyoffice tasks;
# Custom app installation example. # Custom app installation example.
# cookbook = pkgs.fetchNextcloudApp rec { # cookbook = pkgs.fetchNextcloudApp rec {