mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
Nixpkgs switched pkgs.formats.yaml to remarshal v2. Generated files now start with a %YAML 1.1 directive and a --- document start, and multiline strings use double-quoted escapes. Only files written through yamlFormat.generate change. Modules that declare the YAML type but write the file with builtins.toJSON keep their current output.
32 lines
641 B
Nix
32 lines
641 B
Nix
{
|
|
programs.yambar = {
|
|
enable = true;
|
|
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" ''
|
|
%YAML 1.1
|
|
---
|
|
bar:
|
|
background: '00000066'
|
|
height: 26
|
|
location: top
|
|
right:
|
|
- clock:
|
|
content:
|
|
- string:
|
|
text: '{time}'
|
|
''}
|
|
'';
|
|
}
|