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

amfora: add module

This commit is contained in:
Aguirre Matteo 2025-10-06 20:28:15 -03:00 committed by Austin Horstman
parent 929535c308
commit 40ff79012e
5 changed files with 140 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xbel
PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.1//EN//XML"
"http://www.python.org/topics/xml/dtds/xbel-1.1.dtd">
<xbel version="1.1">
<bookmark href="gemini://example.com/">
<title>Example Bookmark</title>
</bookmark>
</xbel>

View file

@ -0,0 +1,10 @@
[a-general]
ansi = true
auto_redirect = false
bullets = true
color = true
highlight_code = true
highlight_style = "monokai"
home = "gemini://geminiprotocol.net"
http = "default"
search = "gemini://geminispace.info/search"

View file

@ -0,0 +1 @@
{ amfora-settings = ./settings.nix; }

View file

@ -0,0 +1,40 @@
{
programs.amfora = {
enable = true;
settings = {
a-general = {
home = "gemini://geminiprotocol.net";
auto_redirect = false;
http = "default";
search = "gemini://geminispace.info/search";
color = true;
ansi = true;
highlight_code = true;
highlight_style = "monokai";
bullets = true;
};
};
bookmarks = ''
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xbel
PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.1//EN//XML"
"http://www.python.org/topics/xml/dtds/xbel-1.1.dtd">
<xbel version="1.1">
<bookmark href="gemini://example.com/">
<title>Example Bookmark</title>
</bookmark>
</xbel>
'';
};
nmt.script = ''
assertFileExists home-files/.config/amfora/config.toml
assertFileContent home-files/.config/amfora/config.toml \
${./config.toml}
assertFileExists home-files/.local/share/amfora/bookmarks.xml
assertFileContent home-files/.local/share/amfora/bookmarks.xml \
${./bookmarks.xml}
'';
}