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:
parent
e22fb25cde
commit
9d6e28fd32
4 changed files with 64 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
rio-example-settings = ./example-settings.nix;
|
||||
rio-empty-settings = ./empty-settings.nix;
|
||||
rio-themes = ./example-themes.nix;
|
||||
}
|
||||
|
|
|
|||
30
tests/modules/programs/rio/example-themes.nix
Normal file
30
tests/modules/programs/rio/example-themes.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
4
tests/modules/programs/rio/foobar.toml
Normal file
4
tests/modules/programs/rio/foobar.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[colors]
|
||||
background = "#282a36"
|
||||
cyan = "#8be9fd"
|
||||
green = "#50fa7b"
|
||||
Loading…
Add table
Add a link
Reference in a new issue