1
0
Fork 0
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:
awwpotato 2025-05-13 10:05:32 -07:00 committed by GitHub
parent df556f2a17
commit 8d832ddfda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 172 additions and 0 deletions

View 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"
}
}
''}
'';
}

View file

@ -0,0 +1,3 @@
{
foliate-basic-theme = ./basic-theme.nix;
}