fork/home-manager

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

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

master
1.2 KiB53 linesraw
1{ config, lib, pkgs, ... }:
2
3{
4  config = {
5    programs.i3status-rust = { enable = true; };
6
7    test.stubs.i3status-rust = { version = "0.31.2"; };
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            [[block]]
15            alert = 10.0
16            block = "disk_space"
17            info_type = "available"
18            interval = 60
19            path = "/"
20            warning = 20.0
21
22            [[block]]
23            block = "memory"
24            format = " $icon mem_used_percents "
25            format_alt = " $icon $swap_used_percents "
26
27            [[block]]
28            block = "cpu"
29            interval = 1
30
31            [[block]]
32            block = "load"
33            format = " $icon $1m "
34            interval = 1
35
36            [[block]]
37            block = "sound"
38
39            [[block]]
40            block = "time"
41            format = " $timestamp.datetime(f:'%a %d/%m %R') "
42            interval = 60
43
44            [icons]
45            icons = "none"
46
47            [theme]
48            theme = "plain"
49          ''
50        }
51    '';
52  };
53}