2019-12-30 01:46:04 +01:00
|
|
|
import (<nixos-unstable/nixos/tests/make-test-python.nix>) {
|
2019-12-29 04:23:16 +01:00
|
|
|
|
|
|
|
nodes =
|
|
|
|
{
|
|
|
|
server =
|
|
|
|
{ config, pkgs, ...}:
|
|
|
|
{
|
2019-12-30 01:46:04 +01:00
|
|
|
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 = [
|
2019-12-30 01:46:04 +01:00
|
|
|
(import ./default.nix)
|
2019-12-29 04:23:16 +01:00
|
|
|
];
|
|
|
|
|
2020-11-27 22:26:09 +01:00
|
|
|
console.keyMap = "de";
|
2019-12-29 04:23:16 +01:00
|
|
|
users.mutableUsers = false;
|
2019-12-30 01:46:04 +01:00
|
|
|
users.users.test = {
|
2019-12-29 04:23:16 +01:00
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" ];
|
2019-12-30 01:46:04 +01:00
|
|
|
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-30 01:46:04 +01:00
|
|
|
|
2019-12-29 04:23:16 +01:00
|
|
|
};
|
2019-12-30 01:46:04 +01:00
|
|
|
client = {};
|
|
|
|
};
|
2019-12-29 04:23:16 +01:00
|
|
|
testScript =
|
2019-12-30 01:46:04 +01:00
|
|
|
''
|
|
|
|
print("foo")
|
|
|
|
server.start()
|
|
|
|
server.wait_for_unit("seafile-server.service")
|
|
|
|
'';
|
|
|
|
}
|