mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-06 17:11:03 +01:00
foliate: init (#7049)
This commit is contained in:
parent
df556f2a17
commit
8d832ddfda
7 changed files with 172 additions and 0 deletions
45
tests/modules/programs/foliate/basic-theme.nix
Normal file
45
tests/modules/programs/foliate/basic-theme.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.foliate = {
|
||||
enable = true;
|
||||
settings = {
|
||||
color-scheme = 0;
|
||||
library = {
|
||||
view-mode = "grid";
|
||||
show-covers = true;
|
||||
};
|
||||
"viewer/view" = {
|
||||
theme = "My Theme";
|
||||
};
|
||||
"viewer/font" = {
|
||||
monospace = "Maple Mono";
|
||||
default-size = 12;
|
||||
};
|
||||
};
|
||||
themes.myTheme = {
|
||||
label = "My Theme";
|
||||
light = {
|
||||
fg = "#89b4fa";
|
||||
bg = "#1e1e2e";
|
||||
link = "#89b4fa";
|
||||
};
|
||||
dark = { };
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/com.github.johnfactotum.Foliate/themes/myTheme.json
|
||||
assertFileContent home-files/.config/com.github.johnfactotum.Foliate/themes/myTheme.json \
|
||||
${pkgs.writeText "expected-foliate-theme" ''
|
||||
{
|
||||
"dark": {},
|
||||
"label": "My Theme",
|
||||
"light": {
|
||||
"bg": "#1e1e2e",
|
||||
"fg": "#89b4fa",
|
||||
"link": "#89b4fa"
|
||||
}
|
||||
}
|
||||
''}
|
||||
'';
|
||||
}
|
||||
3
tests/modules/programs/foliate/default.nix
Normal file
3
tests/modules/programs/foliate/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
foliate-basic-theme = ./basic-theme.nix;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue