overlay for packaging Seafile server for NixOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
993 B

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