Skip to content

Commit

Permalink
create modules/default-flatpaks/default-flatpaks.tsp
Browse files Browse the repository at this point in the history
  • Loading branch information
dillydilly1990 committed Feb 15, 2025
1 parent b3934d5 commit 52b29dc
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions modules/default-flatpaks/default-flatpaks.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import "@typespec/json-schema";
using TypeSpec.JsonSchema;

@jsonSchema("/modules/default-flatpaks-latest.json")
model DefaultFlatpaksModuleLatest {
...DefaultFlatpaksModuleV1;
}

@jsonSchema("/modules/default-flatpaks-v1.json")
model DefaultFlatpaksModuleV1 {
/** The default-flatpaks module can be used to install or uninstall flatpaks from a configurable remote on every boot.
* https://blue-build.org/reference/modules/default-flatpaks/
*/
type: "default-flatpaks" | "default-flatpaks@v1" | "default-flatpaks@latest";

/** Whether to send a notification after the install/uninstall is finished. */
notify?: boolean = false;

/** Configuration for system flatpaks. */
system?: {
/** URL of the repo to add. Defaults to Flathub's URL. */
`repo-url`?: string = "https://dl.flathub.org/repo/flathub.flatpakrepo";

/** Name for the repo to add. */
`repo-name`?: string = "flathub";

/** Pretty title for the repo to add. Not set by default. */
`repo-title`?: string;

/** List of Flatpak IDs to install from the repo. */
install?: Array<string>;

/** List of Flatpak IDs to remove. */
remove?: Array<string>;
};

/** Configuration for user flatpaks. */
user?: {
/** URL of the repo to add. Defaults to Flathub's URL. */
`repo-url`?: string = "https://dl.flathub.org/repo/flathub.flatpakrepo";

/** Name for the repo to add. */
`repo-name`?: string = "flathub";

/** Pretty title for the repo to add. Not set by default. */
`repo-title`?: string;

/** List of Flatpak IDs to install from the repo. */
install?: Array<string>;

/** List of Flatpak IDs to remove. */
remove?: Array<string>;
};
}

0 comments on commit 52b29dc

Please sign in to comment.