@@ -1,15 +1,15 @@
1−import ../make-test-python.nix (
1+import ../make-test-python.nix (
22 {
33 pkgs, ...
4− }:
4+ }:
55 # copy_from_host works only for store paths
66 rec {
77 name = "fcitx";
8− machine =
9− {
10− pkgs,
11− ...
12− }:
8+ machine =
9+ {
10+ pkgs,
11+ ...
12+ }:
1313 {
1414 virtualisation.memorySize = 1024;
1515
@@ -19,11 +19,11 @@ import ../make-test-python.nix (
1919
2020 environment.systemPackages = [
2121 # To avoid clashing with xfce4-terminal
22− pkgs.alacritty
22+ pkgs.alacritty
2323 ];
2424
2525
26− services.xserver =
26+ services.xserver =
2727 {
2828 enable = true;
2929
@@ -37,7 +37,7 @@ import ../make-test-python.nix (
3737
3838 desktopManager.xfce.enable = true;
3939 };
40−
40+
4141 i18n = {
4242 inputMethod = {
4343 enabled = "fcitx";
@@ -50,14 +50,14 @@ import ../make-test-python.nix (
5050 }
5151 ;
5252
53− testScript = { nodes, ... }:
54− let
53+ testScript = { nodes, ... }:
54+ let
5555 user = nodes.machine.config.users.users.alice;
5656 userName = user.name;
5757 userHome = user.home;
5858 xauth = "${userHome}/.Xauthority";
5959 fcitx_confdir = "${userHome}/.config/fcitx";
60− in
60+ in
6161 ''
6262 # We need config files before login session
6363 # So copy first thing
@@ -92,7 +92,7 @@ import ../make-test-python.nix (
9292 machine.send_key("ctrl-alt-shift-u")
9393 machine.sleep(5)
9494 machine.sleep(1)
95−
95+
9696 ### Search for smiling face
9797 machine.send_chars("smil")
9898 machine.sleep(1)