{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.xmobar = {
enable = true;
package = config.lib.test.mkStubPackage { };
extraConfig = ''
Config
{ font = "Fira Code"
, borderColor = "#d0d0d0"
, border = FullB
, borderWidth = 3
, bgColor = "#222"
, fgColor = "grey"
, position = TopSize C 99 30
, commands =
[ Run Cpu ["-t", "cpu: %"] 10
, Run Network "enp3s0" ["-S", "True", "-t", "eth: /"] 10
, Run Memory ["-t","mem: %"] 10
, Run Date "date: %a %d %b %Y %H:%M:%S " "date" 10
, Run StdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = " %StdinReader% | %cpu% | %memory% | %enp3s0% }{%date% "
}
'';
};
nmt.script = ''
assertFileExists home-files/.config/xmobar/.xmobarrc
assertFileContent \
home-files/.config/xmobar/.xmobarrc \
${./basic-configuration.expected}
'';
};
}