Skip to content

Commit

Permalink
nixos/tests/keymap: Remove OCR-friendly SLiM theme
Browse files Browse the repository at this point in the history
The test doesn't use OCR, so we actually don't need an OCR-friendly
theme here.

Signed-off-by: aszlig <aszlig@nix.build>
  • Loading branch information
aszlig committed Mar 6, 2018
1 parent 527eb35 commit 7f26c1b
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions nixos/tests/keymap.nix
Expand Up @@ -50,38 +50,7 @@ let
machine.i18n.consoleKeyMap = mkOverride 900 layout;
machine.services.xserver.layout = mkOverride 900 layout;
machine.imports = [ ./common/x11.nix extraConfig ];
machine.services.xserver.displayManager.slim = {
enable = true;

# Use a custom theme in order to get best OCR results
theme = pkgs.runCommand "slim-theme-ocr" {
nativeBuildInputs = [ pkgs.imagemagick ];
} ''
mkdir "$out"
convert -size 1x1 xc:white "$out/background.jpg"
convert -size 200x100 xc:white "$out/panel.jpg"
cat > "$out/slim.theme" <<EOF
background_color #ffffff
background_style tile
input_fgcolor #000000
msg_color #000000
session_color #000000
session_font Verdana:size=16:bold
username_msg Username:
username_font Verdana:size=16:bold
username_color #000000
username_x 50%
username_y 40%
password_msg Password:
password_x 50%
password_y 40%
EOF
'';
};
machine.services.xserver.displayManager.slim.enable = true;

testScript = ''
sub waitCatAndDelete ($) {
Expand Down

0 comments on commit 7f26c1b

Please sign in to comment.