1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/ahoviewer/example-config.nix
2025-09-23 12:26:21 -05:00

41 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
programs.ahoviewer = {
enable = true;
config = ''
ZoomMode = "M";
Geometry :
{
x = 964;
y = 574;
w = 948;
h = 498;
};
BooruWidth = 382;
TagViewPosition = 318;
SmartNavigation = true;
StoreRecentFiles = false;
RememberLastFile = false;
SaveThumbnails = false;
AutoOpenArchive = false;
BooruBrowserVisible = true;
'';
plugins = [
(pkgs.callPackage ./plugins/a.nix { })
(pkgs.callPackage ./plugins/b.nix { })
];
};
nmt.script = ''
assertFileExists home-files/.config/ahoviewer/ahoviewer.cfg
assertFileContent home-files/.config/ahoviewer/ahoviewer.cfg \
${./ahoviewer.cfg}
assertFileExists home-files/.local/share/ahoviewer/plugins/plugin-a/plugin-a.plugin
assertFileExists home-files/.local/share/ahoviewer/plugins/plugin-a/plugin-a.py
assertFileExists home-files/.local/share/ahoviewer/plugins/plugin-a/plugin-a.plugin
assertFileExists home-files/.local/share/ahoviewer/plugins/plugin-a/plugin-a.py
'';
}