45 lines
993 B
Nix
45 lines
993 B
Nix
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")
|
|
'';
|
|
}
|