From c3052ddc4e54092bfc9220d550ab4d8fcba166de Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Wed, 11 Sep 2024 10:50:30 -0500 Subject: The modules seem fairly solid now. Now to write the cli --- modules/kobo/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'modules/kobo') diff --git a/modules/kobo/default.nix b/modules/kobo/default.nix index 48bca11..ec0c469 100644 --- a/modules/kobo/default.nix +++ b/modules/kobo/default.nix @@ -65,23 +65,37 @@ in { default = {}; description = "https://wiki.mobileread.com/wiki/Kobo_Configuration_Options"; }; + + analytics = mkOption { + type = ini.type; + default = {}; + }; }; config = mkMerge [ { kobo = { conf = { - FeatureSettings.ExcludeSyncFolders = ''(\.(?!kobo|adobe).+|([^.][^/]*/)+\..+)''; ApplicationPreferences = { + CurrentLocale = "en"; SideloadedMode = true; QuickTourShown = true; }; + FeatureSettings = { + ExcludeSyncFolders = ''(\\.(?!kobo|adobe).+|([^.][^/]*/)+\\..+)''; + }; + DialogSettings = { + ReleaseNotesShown = true; + }; }; file = { "Kobo eReader.conf" = mkIf (cfg.conf != {}) { text = generators.toINI {} cfg.conf; }; + "Analytics.conf" = mkIf (cfg.analytics != {}) { + text = generators.toINI {} cfg.analytics; + }; }; }; } -- cgit v1.2.3