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 displayManager.sddm.enable = true;
33 displayManager.defaultSession = "plasma";
34 desktopManager.plasma5.enable = true;
35 desktopManager.plasma5.runUsingSystemd = true;
36 displayManager.autoLogin = {
42 systemd.user.services = {
44 wantedBy = [ "graphical-session.target" ];
45 serviceConfig.ExecStart = "${pkgs.maestral-gui}/bin/maestral_qt";
47 # PowerDevil doesn't like our VM
48 plasma-powerdevil.enable = false;
53 testScript = { nodes, ... }:
55 user = nodes.cli.config.users.users.alice;
61 # we need SOME way to give the user an active login session
62 cli.execute("loginctl enable-linger ${user.name}")
63 cli.systemctl("start user@${toString user.uid}")
64 cli.wait_for_unit("maestral.service", "${user.name}")
68 gui.succeed("xauth merge ${user.home}/.Xauthority")
69 gui.wait_for_window("^Desktop ")
70 gui.wait_for_unit("maestral.service", "${user.name}")