aboutsummaryrefslogtreecommitdiff
path: root/modules/kobo/default.nix
diff options
context:
space:
mode:
authorChris Wells <chris@mathematicaster.org>2024-09-11 10:50:30 -0500
committerChris Wells <chris@mathematicaster.org>2024-09-11 10:50:30 -0500
commitc3052ddc4e54092bfc9220d550ab4d8fcba166de (patch)
tree836e2f11242afe8911e9eabd644c9a20ab668f3d /modules/kobo/default.nix
parent4f471484b3a1e16230979a8406503a220b9101f4 (diff)
downloadkobo-manager-c3052ddc4e54092bfc9220d550ab4d8fcba166de.tar
kobo-manager-c3052ddc4e54092bfc9220d550ab4d8fcba166de.tar.gz
kobo-manager-c3052ddc4e54092bfc9220d550ab4d8fcba166de.tar.bz2
kobo-manager-c3052ddc4e54092bfc9220d550ab4d8fcba166de.tar.lz
kobo-manager-c3052ddc4e54092bfc9220d550ab4d8fcba166de.tar.xz
kobo-manager-c3052ddc4e54092bfc9220d550ab4d8fcba166de.tar.zst
kobo-manager-c3052ddc4e54092bfc9220d550ab4d8fcba166de.zip
The modules seem fairly solid now. Now to write the cli
Diffstat (limited to 'modules/kobo/default.nix')
-rw-r--r--modules/kobo/default.nix16
1 files changed, 15 insertions, 1 deletions
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;
+ };
};
};
}