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]]
|
2023-02-25 01:27:04 +01:00
|
|
|
alert = 10.0
|
2020-09-02 04:37:42 +02:00
|
|
|
alias = "/"
|
|
|
|
block = "disk_space"
|
|
|
|
info_type = "available"
|
|
|
|
interval = 60
|
|
|
|
path = "/"
|
|
|
|
unit = "GB"
|
2023-02-25 01:27:04 +01:00
|
|
|
warning = 20.0
|
2020-09-02 04:37:42 +02:00
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "memory"
|
|
|
|
display_type = "memory"
|
2022-03-04 04:32:59 +01:00
|
|
|
format_mem = "{mem_used_percents}"
|
|
|
|
format_swap = "{swap_used_percents}"
|
2020-09-02 04:37:42 +02:00
|
|
|
|
|
|
|
[[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
|
2022-04-26 23:04:50 +02:00
|
|
|
''
|
2020-09-02 04:37:42 +02:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|