depot/third_party/home-manager/tests/modules/programs/rio/example-settings.nix
Default email 4d19ca4703 Project import generated by Copybara.
GitOrigin-RevId: a7117efb3725e6197dd95424136f79147aa35e5b
2024-06-04 11:23:39 -07:00

25 lines
488 B
Nix

{ config, pkgs, ... }:
let
expected = pkgs.writeText "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}'
'';
}