@@ -1,15 +1,15 @@
1−import ../make-test-python.nix (
1+import ../make-test-python.nix (
5 # copy_from_host works only for store paths
5 # copy_from_host works only for store paths
7 name = "fcitx";
7 name = "fcitx";
8− machine =
8+ machine =
14 virtualisation.memorySize = 1024;
14 virtualisation.memorySize = 1024;
@@ -19,11 +19,11 @@ import ../make-test-python.nix (
20 environment.systemPackages = [
20 environment.systemPackages = [
21 # To avoid clashing with xfce4-terminal
21 # To avoid clashing with xfce4-terminal
22− pkgs.alacritty
22+ pkgs.alacritty
26− services.xserver =
26+ services.xserver =
28 enable = true;
28 enable = true;
@@ -37,7 +37,7 @@ import ../make-test-python.nix (
38 desktopManager.xfce.enable = true;
38 desktopManager.xfce.enable = true;
42 inputMethod = {
42 inputMethod = {
43 enabled = "fcitx";
43 enabled = "fcitx";
@@ -50,14 +50,14 @@ import ../make-test-python.nix (
53− testScript = { nodes, ... }:
53+ testScript = { nodes, ... }:
55 user = nodes.machine.config.users.users.alice;
55 user = nodes.machine.config.users.users.alice;
56 userName = user.name;
56 userName = user.name;
57 userHome = user.home;
57 userHome = user.home;
58 xauth = "${userHome}/.Xauthority";
58 xauth = "${userHome}/.Xauthority";
59 fcitx_confdir = "${userHome}/.config/fcitx";
59 fcitx_confdir = "${userHome}/.config/fcitx";
62 # We need config files before login session
62 # We need config files before login session
63 # So copy first thing
63 # So copy first thing
@@ -92,7 +92,7 @@ import ../make-test-python.nix (
92 machine.send_key("ctrl-alt-shift-u")
92 machine.send_key("ctrl-alt-shift-u")
93 machine.sleep(5)
93 machine.sleep(5)
94 machine.sleep(1)
94 machine.sleep(1)
96 ### Search for smiling face
96 ### Search for smiling face
97 machine.send_chars("smil")
97 machine.send_chars("smil")
98 machine.sleep(1)
98 machine.sleep(1)