diff --git a/seafile-nixos-tests.nix b/seafile-nixos-tests.nix new file mode 100644 index 0000000..223b8af --- /dev/null +++ b/seafile-nixos-tests.nix @@ -0,0 +1,32 @@ +import ( + /nixos/tests/make-test-python.nix) { + + nodes = + { + server = + { config, pkgs, ...}: + { + + nixpkgs.overlays = [ + (import /home/spiollinux/nixconfigs/home/ov/seafile-overlay) + ]; + + i18n.consoleKeyMap = "de"; + users.mutableUsers = false; + users.users.asdtest = { + isNormalUser = true; + extraGroups = [ "wheel" ]; + #hashedPassword = "$6$SZCzE/xB$Hr9sfsJ7xAcBCoptG39cxxQk8RZfldDjjGpSngOvn9Ufex5dHBEbdncXRZnfrGATsGcYPvLi7m4wIu.f8tY9B."; + password = ""; + home = "/srv/test"; + createHome = false; + }; + }; + client = {}; + }; + testScript = + '' + print("foo") + server.start() + server.wait_for_unit("seafile.service") + ''; +}