mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 22:59:44 +01:00
36 lines
711 B
Nix
36 lines
711 B
Nix
|
{ config, ... }:
|
||
|
|
||
|
{
|
||
|
programs.yambar = {
|
||
|
enable = true;
|
||
|
package = config.lib.test.mkStubPackage { };
|
||
|
|
||
|
settings = {
|
||
|
bar = {
|
||
|
location = "top";
|
||
|
height = 26;
|
||
|
background = "00000066";
|
||
|
right = [{ clock.content = [{ string.text = "{time}"; }]; }];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileContent \
|
||
|
home-files/.config/yambar/config.yml \
|
||
|
${
|
||
|
builtins.toFile "yambar-expected.yml" ''
|
||
|
bar:
|
||
|
background: '00000066'
|
||
|
height: 26
|
||
|
location: top
|
||
|
right:
|
||
|
- clock:
|
||
|
content:
|
||
|
- string:
|
||
|
text: '{time}'
|
||
|
''
|
||
|
}
|
||
|
'';
|
||
|
}
|