Nextcloud: Difference between revisions
imported>MoKe12g added nextcloud client and note that a keyring is necessary for it to save the login token |
imported>Onny Add example build app from source |
||
| Line 56: | Line 56: | ||
sha256 = "sha256-eTc51pkg3OdHJB7X4/hD39Ce+9vKzw1nlJ7BhPOzdy0="; | sha256 = "sha256-eTc51pkg3OdHJB7X4/hD39Ce+9vKzw1nlJ7BhPOzdy0="; | ||
}; | }; | ||
}; | |||
extraAppsEnable = true; | |||
}; | |||
</nowiki>}} | |||
It is even possible to fetch and build an app from source, in this example the development app [https://github.com/nextcloud/hmr_enabler hmr_enabler]. | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
services.nextcloud = { | |||
enable = true; | |||
[...] | |||
extraApps = { | |||
hmr_enabler = pkgs.php.buildComposerProject (finalAttrs: { | |||
pname = "hmr_enabler"; | |||
version = "1.0.0"; | |||
src = pkgs.fetchFromGitHub { | |||
owner = "onny"; | |||
repo = "hmr_enabler"; | |||
rev = "85404e232344c856133e0b14e3ea30bbb8118034"; | |||
hash = "sha256-mxUTWQozqcnTnlHrUtfUcsAX+X/N0fcLiUec4cGjGdg="; | |||
}; | |||
composerNoDev = false; | |||
vendorHash = "sha256-ENfs9gsXtrWP7u8+LKDMQ+hhiP3UKtn6t5lPl6wKOdQ="; | |||
postInstall = '' | |||
cp -r $out/share/php/hmr_enabler/* $out/ | |||
rm -r $out/share | |||
''; | |||
}); | |||
}; | }; | ||
extraAppsEnable = true; | extraAppsEnable = true; | ||