docs: update documentation for automated package updates workflow

This commit is contained in:
m3tm3re
2026-01-13 20:56:01 +01:00
parent b6d45cae4f
commit 366af129bd
6 changed files with 39 additions and 7 deletions

View File

@@ -29,7 +29,8 @@ with lib; let
mapAttrs (name: value: {
path = value.path;
args = value.args;
}) cfg.projectDirs
})
cfg.projectDirs
);
in {
options.cli.rofi-project-opener = {
@@ -38,8 +39,8 @@ in {
projectDirs = mkOption {
type = types.attrsOf projectDirType;
default = {
dev = { path = "~/dev"; };
projects = { path = "~/projects"; };
dev = {path = "~/dev";};
projects = {path = "~/projects";};
};
description = ''
Attribute set of base directories to scan for project subdirectories.
@@ -120,7 +121,11 @@ in {
# Write shell config file for other settings
xdg.configFile."rofi-project-opener/config".text = ''
# rofi-project-opener configuration
TERMINAL="${if isDerivation cfg.terminal then "${cfg.terminal}/bin/${cfg.terminal.pname or (builtins.baseNameOf (toString cfg.terminal))}" else cfg.terminal}"
TERMINAL="${
if isDerivation cfg.terminal
then "${cfg.terminal}/bin/${cfg.terminal.pname or (builtins.baseNameOf (toString cfg.terminal))}"
else cfg.terminal
}"
${optionalString (cfg.terminalCommand != "") ''TERMINAL_CMD="${cfg.terminalCommand}"''}
ROFI_PROMPT="${cfg.rofiPrompt}"
ROFI_ARGS="${escapeShellArgs cfg.rofiArgs}"