migrate to build against nixos-unstable

This commit is contained in:
Trolli Schmittlauch 2019-12-30 01:46:04 +01:00
parent b3d869e847
commit 62a1cd9cf5
2 changed files with 29 additions and 17 deletions

View file

@ -1,32 +1,44 @@
import (<nixos-unstable> + /nixos/tests/make-test-python.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 /home/spiollinux/nixconfigs/home/ov/seafile-overlay)
(import ./default.nix)
];
i18n.consoleKeyMap = "de";
users.mutableUsers = false;
users.users.asdtest = {
users.users.test = {
isNormalUser = true;
extraGroups = [ "wheel" ];
#hashedPassword = "$6$SZCzE/xB$Hr9sfsJ7xAcBCoptG39cxxQk8RZfldDjjGpSngOvn9Ufex5dHBEbdncXRZnfrGATsGcYPvLi7m4wIu.f8tY9B.";
password = "";
home = "/srv/test";
createHome = false;
};
password = "";
home = "/home/test";
createHome = true;
};
client = {};
# Seafile
services.seafile-server = {
enable = true;
#autorun = false;
domainName = "localhost";
};
};
client = {};
};
testScript =
''
print("foo")
server.start()
server.wait_for_unit("seafile.service")
'';
}
''
print("foo")
server.start()
server.wait_for_unit("seafile-server.service")
'';
}