From d7483ed8505710033384d7fabad34470818bc760 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Thu, 15 Feb 2024 15:41:07 -0600 Subject: Added dev path. Now to figure out how to make my own one-click packages --- modules/koreader.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/koreader.nix') 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" ]; }; }; -- cgit v1.2.3