1 import ./make-test-python.nix ({ pkgs, ... }: {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ peterhoeg ];
10 pkgs.lib.recursiveUpdate
12 imports = [ ./common/user-account.nix ];
13 systemd.user.services.maestral = {
14 description = "Maestral Dropbox Client";
15 serviceConfig.Type = "exec";
22 cli = { ... }: common {
23 systemd.user.services.maestral = {
24 wantedBy = [ "default.target" ];
25 serviceConfig.ExecStart = "${pkgs.maestral}/bin/maestral start --foreground";
29 gui = { ... }: common {
32 desktopManager.plasma5.enable = true;
33 desktopManager.plasma5.runUsingSystemd = true;
36 services.displayManager = {
38 defaultSession = "plasma";
45 systemd.user.services = {
47 wantedBy = [ "graphical-session.target" ];
48 serviceConfig.ExecStart = "${pkgs.maestral-gui}/bin/maestral_qt";
50 # PowerDevil doesn't like our VM
51 plasma-powerdevil.enable = false;
56 testScript = { nodes, ... }:
58 user = nodes.cli.users.users.alice;
64 # we need SOME way to give the user an active login session
65 cli.execute("loginctl enable-linger ${user.name}")
66 cli.systemctl("start user@${toString user.uid}")
67 cli.wait_for_unit("maestral.service", "${user.name}")
71 gui.wait_for_file("/tmp/xauth_*")
72 gui.succeed("xauth merge /tmp/xauth_*")
73 gui.wait_for_window("^Desktop ")
74 gui.wait_for_unit("maestral.service", "${user.name}")