mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
This is a regular source for confusion and had no test-coverage so far, so adding two tests that * Make sure Nextcloud running in a different location (tmpfs mount here as mock for the mount of a different disk). * A bind-mount of Nextcloud from a disk-mount to /var/lib/nextcloud can be created.
33 lines
633 B
Nix
33 lines
633 B
Nix
{
|
|
name,
|
|
pkgs,
|
|
testBase,
|
|
system,
|
|
...
|
|
}:
|
|
|
|
with import ../../lib/testing-python.nix { inherit system pkgs; };
|
|
runTest (
|
|
{ config, lib, ... }:
|
|
{
|
|
inherit name;
|
|
meta.maintainers = lib.teams.nextcloud.members;
|
|
|
|
imports = [ testBase ];
|
|
|
|
nodes.nextcloud = { pkgs, ... }: {
|
|
system.activationScripts.nc-mock-mount = {
|
|
deps = [ "users" ];
|
|
text = ''
|
|
${pkgs.coreutils}/bin/mkdir -p /mnt
|
|
${pkgs.util-linux}/bin/mount -t tmpfs tmpfs /mnt
|
|
'';
|
|
};
|
|
services.nextcloud = {
|
|
config.dbtype = "sqlite";
|
|
home = "/mnt/nextcloud";
|
|
};
|
|
};
|
|
}
|
|
)
|