aboutsummaryrefslogtreecommitdiff
path: root/modules/koreader.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/koreader.nix')
-rw-r--r--modules/koreader.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/koreader.nix b/modules/koreader.nix
index aec90fe..5bcca42 100644
--- a/modules/koreader.nix
+++ b/modules/koreader.nix
@@ -13,6 +13,13 @@ in {
description = "Relative path to KOReader within src";
};
+ devPath = mkOption {
+ type = types.str;
+ default = "/mnt/onboard/${cfg.path}";
+ readOnly = true;
+ internal = true;
+ };
+
nickelEntry = mkEnableOption "Launch KOReader directly via nickelMenu";
file = importOption ./lib/file.nix;
@@ -40,7 +47,7 @@ in {
action = "cmd_spawn";
arg = [
"quiet"
- "exec /mnt/onboard/${cfg.path}/koreader.sh"
+ "exec ${cfg.devPath}/koreader.sh"
];
};
};