Skip to content

Commit

Permalink
feat(applications): add COSMIC calculator module
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN committed Feb 17, 2025
1 parent 666cecf commit ad623cd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions modules/applications/by-name/cosmic-ext-calculator/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, ... }:
lib.cosmic.applications.mkCosmicApplication {
name = "cosmic-ext-calculator";
originalName = "COSMIC Calculator";
identifier = "dev.edfloreshz.Calculator";
configurationVersion = 1;

maintainers = [ lib.maintainers.HeitorAugustoLN ];

# NOTE: There is also a history configuration entry, but I will not add it here, since I don't think it belong as a setting, but rather an state entry
# It will probably open a PR there, fixing it.
settingsOptions.app_theme =
lib.cosmic.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 ad623cd

Please sign in to comment.