mirror of
https://github.com/nix-community/home-manager
synced 2024-11-09 04:39:44 +01:00
6fc82e5697
* Revert "i3status-rust: satisfy new 0.31 TOML output requirements (#3938)"
This reverts commit 0e4c33d760
.
* i3status-rust: assertion for unsupported versions
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
programs.i3status-rust = { enable = true; };
|
|
|
|
test.stubs.i3status-rust = { version = "0.31.2"; };
|
|
|
|
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" ''
|
|
[[block]]
|
|
alert = 10.0
|
|
block = "disk_space"
|
|
info_type = "available"
|
|
interval = 60
|
|
path = "/"
|
|
warning = 20.0
|
|
|
|
[[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
|
|
|
|
[icons]
|
|
icons = "none"
|
|
|
|
[theme]
|
|
theme = "plain"
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|