1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-14 15:19:45 +01:00
home-manager/tests/modules/programs/joplin-desktop/basic-configuration.nix

24 lines
518 B
Nix
Raw Normal View History

2024-02-18 22:57:35 +01:00
{
programs.joplin-desktop = {
enable = true;
sync = {
target = "dropbox";
interval = "10m";
};
extraConfig = {
"richTextBannerDismissed" = true;
"newNoteFocus" = "title";
};
};
test.stubs.joplin-desktop = { };
nmt.script = ''
assertFileContains activate \
'/home/hm-user/.config/joplin-desktop/settings.json'
generated="$(grep -o '/nix/store/.*-joplin-settings.json' $TESTED/activate)"
diff -u "$generated" ${./basic-configuration.json}
'';
}