[Nextcloud] build deck in flake
Changes from a cloud filehost to a local build, should also be more maintainable
This commit is contained in:
@@ -39,7 +39,7 @@ in
|
||||
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud32;
|
||||
package = pkgs.nextcloud33;
|
||||
hostName = "cloud.malobeo.org";
|
||||
config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path;
|
||||
maxUploadSize = "10G";
|
||||
@@ -54,11 +54,24 @@ in
|
||||
extraAppsEnable = true;
|
||||
extraApps = {
|
||||
inherit (config.services.nextcloud.package.packages.apps) contacts calendar polls registration collectives forms;
|
||||
deck = pkgs.fetchNextcloudApp {
|
||||
sha256 = "sha256-epjwIANb6vTNx9KqaG6jZc14YPoFMBTCj+/c9JHcWkA=";
|
||||
url = "https://link.storjshare.io/raw/jvrl62dakd6htpyxohjkiiqiw5ma/mal/deck32.tar.gz";
|
||||
license = "agpl3Plus";
|
||||
};
|
||||
deck = pkgs.php.buildComposerProject2 (finalAttrs: {
|
||||
pname = "deck";
|
||||
version = "1.18.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "nextcloud";
|
||||
repo = "deck";
|
||||
rev = "stable33";
|
||||
hash = "sha256-7R0IteB34mWFwUlHptvqNlfmeFhJcGMRlKFtDqsw1Dw=";
|
||||
};
|
||||
composerNoDev = false;
|
||||
composerStrictValidation = false;
|
||||
vendorHash = "sha256-gAuG5kKVpuaOpw2HvAP/hu89lmcVWUiSwujoN++I/ZA=";
|
||||
patches = [ ./0001-Patch-cards-to-be-draggable.patch ];
|
||||
postInstall = ''
|
||||
cp -r $out/share/php/deck/* $out/
|
||||
rm -r $out/share
|
||||
'';
|
||||
});
|
||||
};
|
||||
settings = {
|
||||
trusted_domains = [ "cloud.malobeo.org" "cloud.hq.malobeo.org" ];
|
||||
|
||||
Reference in New Issue
Block a user