generated from dillydilly1990/UBlue-image-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create modules/default-flatpaks/default-flatpaks.tsp
- Loading branch information
1 parent
b3934d5
commit 52b29dc
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; | ||
} |