1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/programs/rio/example-themes.nix
2025-11-03 09:23:19 -06:00

30 lines
635 B
Nix

{ config, ... }:
{
programs.rio = {
enable = true;
package = config.lib.test.mkStubPackage { };
themes = {
foobar.colors = {
cyan = "#8be9fd";
green = "#50fa7b";
background = "#282a36";
};
foobar2 = ./foobar.toml;
};
};
nmt.script = ''
assertFileExists home-files/.config/rio/themes/foobar.toml
assertFileExists home-files/.config/rio/themes/foobar2.toml
assertFileContent \
home-files/.config/rio/themes/foobar.toml \
${./foobar.toml}
assertFileContent \
home-files/.config/rio/themes/foobar2.toml \
${./foobar.toml}
'';
}