title: Export project config as environment variable

description: Export project configuration as home.sessionVariables (similar to zellij-ps pattern). Use JSON format for the env var since projects now have structured data (path + args).

status: open

issue_type: task

depends_on_id: nixpkgs-hrh

type: parent-child


title: Update rofi-project-opener script to pass args to opencode

description: Modify pkgs/rofi-project-opener script to read the new config format and launch opencode with: 'opencode <directory> <arguments>' instead of just 'opencode' in the directory.

depends_on_id: nixpkgs-sys

type: blocks


title: Change projectDirs from list to attrset with path and args

description:
Change projectDirs option type from 'types.listOf types.str' to an attrset like:

projectDirs = {
  nixpkgs = { path = "~/p/NIX/nixpkgs"; args = "--agent Planner-Sisyphus"; };
  myproject = { path = "~/dev/myproject"; };  # args optional
};

Must maintain backward compatibility consideration.


title: projectDirs on rofi-project-switcher should be exported to users home-manager environment

issue_type: feature

issue_id: nixpkgs-hrh


title: Update config file format to include args per project

description: Update the config file at ~/.config/rofi-project-opener/config to support per-project args. Change from PROJECT_DIRS to a format that encodes both path and args, e.g. JSON or structured text.

issue_id: nixpkgs-sys


title: projectDirs should support args, for example --agent <agentname>

description: This means project directories need to be an attribute set and we also need to change the launch command to "opencode <directory name> <arguments>".