mirror of
https://github.com/nix-community/home-manager
synced 2024-12-05 01:19:46 +01:00
2928097823
* broot: update test to match upstream changes Fixes #3527 (cherry picked from commit18b56e3f7d
) * broot: simplify test slightly (cherry picked from commitd7a3c26854
) * i3status-rust: fix tests Nix 2.12.0 slightly changed the JSON output format. This updates the i3status-rust test cases to match. (cherry picked from commit263f6e4523
)
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.i3status-rust = { enable = true; };
|
|
|
|
test.stubs.i3status-rust = { };
|
|
|
|
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.0
|
|
alias = "/"
|
|
block = "disk_space"
|
|
info_type = "available"
|
|
interval = 60
|
|
path = "/"
|
|
unit = "GB"
|
|
warning = 20.0
|
|
|
|
[[block]]
|
|
block = "memory"
|
|
display_type = "memory"
|
|
format_mem = "{mem_used_percents}"
|
|
format_swap = "{swap_used_percents}"
|
|
|
|
[[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
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|