2020-09-02 04:37:42 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.i3status-rust = { enable = true; };
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
test.stubs.i3status-rust = { };
|
2020-09-02 04:37:42 +02:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/i3status-rust/config-default.toml
|
|
|
|
assertFileContent home-files/.config/i3status-rust/config-default.toml \
|
|
|
|
${
|
|
|
|
pkgs.writeText "i3status-rust-expected-config" ''
|
|
|
|
icons = "none"
|
|
|
|
theme = "plain"
|
|
|
|
[[block]]
|
|
|
|
alert = 10
|
|
|
|
alias = "/"
|
|
|
|
block = "disk_space"
|
|
|
|
info_type = "available"
|
|
|
|
interval = 60
|
|
|
|
path = "/"
|
|
|
|
unit = "GB"
|
|
|
|
warning = 20
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "memory"
|
|
|
|
display_type = "memory"
|
|
|
|
format_mem = "{Mup}%"
|
|
|
|
format_swap = "{SUp}%"
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "cpu"
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "load"
|
|
|
|
format = "{1m}"
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "sound"
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "time"
|
|
|
|
format = "%a %d/%m %R"
|
|
|
|
interval = 60
|
|
|
|
''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|