2023-03-16 12:48:55 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.i3status-rust = { enable = true; };
|
|
|
|
|
|
|
|
test.stubs.i3status-rust = { version = "0.29.9"; };
|
|
|
|
|
|
|
|
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]]
|
|
|
|
block = "disk_space"
|
2023-05-01 23:46:41 +02:00
|
|
|
alert = 10
|
2023-03-16 12:48:55 +01:00
|
|
|
info_type = "available"
|
|
|
|
interval = 60
|
|
|
|
path = "/"
|
2023-05-01 23:46:41 +02:00
|
|
|
warning = 20
|
2023-03-16 12:48:55 +01:00
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "memory"
|
|
|
|
format = " $icon mem_used_percents "
|
|
|
|
format_alt = " $icon $swap_used_percents "
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "cpu"
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "load"
|
|
|
|
format = " $icon $1m "
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "sound"
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "time"
|
|
|
|
format = " $timestamp.datetime(f:'%a %d/%m %R') "
|
|
|
|
interval = 60
|
|
|
|
''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|