Skip to content

Commit

Permalink
feat(applications): add COSMIC Media Player module
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN committed Jan 25, 2025
1 parent dfbd423 commit 5e790a6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions modules/applications/by-name/cosmic-player/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib, ... }:
lib.cosmic.applications.mkCosmicApplication {
name = "cosmic-player";
originalName = "COSMIC Media Player";
identifier = "com.system76.CosmicPlayer";
configurationVersion = 1;

maintainers = [ lib.maintainers.HeitorAugustoLN ];

settingsOptions =
let
inherit (lib.cosmic) defaultNullOpts;
in
{
app_theme =
defaultNullOpts.mkRonEnum [ "Dark" "Light" "System" ]
{
__type = "enum";
variant = "System";
}
''
The theme of the application.
'';
};

settingsExample = {
app_theme = {
__type = "enum";
variant = "System";
};
};
}

0 comments on commit 5e790a6

Please sign in to comment.