at master 527 B view raw
1{ pkgs, ... }: 2{ 3 name = "kbd-update-search-paths-patch"; 4 5 nodes.machine = 6 { pkgs, options, ... }: 7 { 8 console = { 9 packages = options.console.packages.default ++ [ pkgs.terminus_font ]; 10 }; 11 }; 12 13 testScript = '' 14 command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1" 15 (status, out) = machine.execute(command) 16 import re 17 pattern = re.compile(r".*Unable to find file:.*") 18 match = pattern.match(out) 19 if match: 20 raise Exception("command `{}` failed".format(command)) 21 ''; 22}