diff options
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" ]; }; }; |
