1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

rio: add support for custom themes

This commit is contained in:
Hoang Nguyen 2025-11-03 00:35:27 +07:00 committed by Austin Horstman
parent e22fb25cde
commit 9d6e28fd32
4 changed files with 64 additions and 0 deletions

View file

@ -1,4 +1,5 @@
{
rio-example-settings = ./example-settings.nix;
rio-empty-settings = ./empty-settings.nix;
rio-themes = ./example-themes.nix;
}

View file

@ -0,0 +1,30 @@
{ 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}
'';
}

View file

@ -0,0 +1,4 @@
[colors]
background = "#282a36"
cyan = "#8be9fd"
green = "#50fa7b"