fork/home-manager

git clone https://git.julia.blue/fork/home-manager

amesgeni3status-rust: revert #3938 (#3957)6fc82e56

master
1.2 KiB49 linesraw
1{ config, lib, pkgs, ... }:
2
3{
4  config = {
5    programs.i3status-rust = { enable = true; };
6
7    test.stubs.i3status-rust = { version = "0.29.9"; };
8
9    nmt.script = ''
10      assertFileExists home-files/.config/i3status-rust/config-default.toml
11      assertFileContent home-files/.config/i3status-rust/config-default.toml \
12        ${
13          pkgs.writeText "i3status-rust-expected-config" ''
14            icons = "none"
15            theme = "plain"
16            [[block]]
17            alert = 10.0
18            block = "disk_space"
19            info_type = "available"
20            interval = 60
21            path = "/"
22            warning = 20.0
23
24            [[block]]
25            block = "memory"
26            format = " $icon mem_used_percents "
27            format_alt = " $icon $swap_used_percents "
28
29            [[block]]
30            block = "cpu"
31            interval = 1
32
33            [[block]]
34            block = "load"
35            format = " $icon $1m "
36            interval = 1
37
38            [[block]]
39            block = "sound"
40
41            [[block]]
42            block = "time"
43            format = " $timestamp.datetime(f:'%a %d/%m %R') "
44            interval = 60
45          ''
46        }
47    '';
48  };
49}