2.home-manager/tests/modules/programs/rio/example-settings.nix
Austin Horstman 1e313820a3 treewide: adapt toml generator changes
Upstream formatter change in
https://github.com/NixOS/nixpkgs/pull/512319 caused tests to fail.
2026-05-02 20:19:12 -05:00

26 lines
483 B
Nix

{ config, ... }:
let
expected = builtins.toFile "rio-expected.toml" ''
cursor = '_'
padding-x = 0
performance = 'Low'
'';
in
{
programs.rio = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
cursor = "_";
performance = "Low";
padding-x = 0;
};
};
nmt.script = ''
assertFileExists home-files/.config/rio/config.toml
assertFileContent home-files/.config/rio/config.toml '${expected}'
'';
}