diff options
| author | Chris Wells <chris@mathematicaster.org> | 2024-02-15 15:41:07 -0600 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2024-02-15 15:41:07 -0600 |
| commit | d7483ed8505710033384d7fabad34470818bc760 (patch) | |
| tree | 8411a63b83e8d4ee994d0ce51426ba9a6e61043a /modules/plato.nix | |
| parent | cbde891d1ced129f6284cbadade652182aa5d2fb (diff) | |
| download | kobo-manager-d7483ed8505710033384d7fabad34470818bc760.tar kobo-manager-d7483ed8505710033384d7fabad34470818bc760.tar.gz kobo-manager-d7483ed8505710033384d7fabad34470818bc760.tar.bz2 kobo-manager-d7483ed8505710033384d7fabad34470818bc760.tar.lz kobo-manager-d7483ed8505710033384d7fabad34470818bc760.tar.xz kobo-manager-d7483ed8505710033384d7fabad34470818bc760.tar.zst kobo-manager-d7483ed8505710033384d7fabad34470818bc760.zip | |
Added dev path. Now to figure out how to make my own one-click packages
Diffstat (limited to 'modules/plato.nix')
| -rw-r--r-- | modules/plato.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/plato.nix b/modules/plato.nix index 2fb1016..0d0d05d 100644 --- a/modules/plato.nix +++ b/modules/plato.nix @@ -13,11 +13,18 @@ in { enable = mkEnableOption "Plato"; path = mkOption { - type = types.srt; + type = types.str; default = ".adds/plato"; description = "Relative path to Plato within src"; }; + devPath = mkOption { + type = types.str; + default = "/mnt/onboard/${cfg.path}"; + readOnly = true; + internal = true; + }; + file = importOption ./lib/file.nix; manifest = importOption ./lib/manifest.nix; @@ -194,7 +201,7 @@ in { action = "cmd_spawn"; arg = [ "quiet" - "exec /mnt/onboard/${cfg.path}/plato.sh" + "exec ${cfg.devPath}/plato.sh" ]; }; }; |
