nixos-seafile-overlay/seafile-nixos-tests.nix

45 lines
993 B
Nix
Raw Normal View History

import (<nixos-unstable/nixos/tests/make-test-python.nix>) {
2019-12-29 04:23:16 +01:00
nodes =
{
server =
{ config, pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/profiles/minimal.nix>
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
./mod-seafile-server.nix
];
2019-12-29 04:23:16 +01:00
nixpkgs.overlays = [
(import ./default.nix)
2019-12-29 04:23:16 +01:00
];
console.keyMap = "de";
2019-12-29 04:23:16 +01:00
users.mutableUsers = false;
users.users.test = {
2019-12-29 04:23:16 +01:00
isNormalUser = true;
extraGroups = [ "wheel" ];
password = "";
home = "/home/test";
createHome = true;
};
# Seafile
services.seafile-server = {
enable = true;
#autorun = false;
domainName = "localhost";
2019-12-29 04:23:16 +01:00
};
2019-12-29 04:23:16 +01:00
};
client = {};
};
2019-12-29 04:23:16 +01:00
testScript =
''
print("foo")
server.start()
server.wait_for_unit("seafile-server.service")
'';
}