summaryrefslogtreecommitdiffstats
path: root/nixos/tests/nextcloud/home-mount.nix
blob: d69f1d59c92ce1e93e375e0b7d538c1a688a133d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  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 = {
      fileSystems."/mnt" = {
        fsType = "tmpfs";
        device = "tmpfs";
      };
      services.nextcloud = {
        config.dbtype = "sqlite";
        home = "/mnt/nextcloud";
      };
    };
  }
)