-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(applications): add COSMIC calculator module
- Loading branch information
1 parent
666cecf
commit ad623cd
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
modules/applications/by-name/cosmic-ext-calculator/default.nix
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,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"; | ||
}; | ||
} |