diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-11 13:36:45 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-11 13:36:45 -0600 |
| commit | dbc5cb478c7fad1c1750421486252f0a5d98ef9c (patch) | |
| tree | 2ca74b6cf1db48e2a1a4989b13a6bc7ac6dcfe32 /lib/lib.nix | |
| parent | 32a7e59b93a9c3748cd6aeca3d4fc9dadf8e0f59 (diff) | |
now there's docs
Diffstat (limited to 'lib/lib.nix')
| -rw-r--r-- | lib/lib.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/lib.nix b/lib/lib.nix index 00cc334..56f0dfd 100644 --- a/lib/lib.nix +++ b/lib/lib.nix @@ -32,15 +32,21 @@ let config, }: let inherit (lib) mkOption mkEnableOption; - mkProgramOption = name: { - enable = mkEnableOption "whether to enable ${name}"; - theme = mkOption { + + mkThemeOption = name: + mkOption { + description = "Pre-made theme for ${name}"; type = lib.types.enum ["catppuccin" "adwaita" "kanagawa"]; default = config.collinux.theme; + defaultText = "config.collinux.theme"; }; + + mkProgramOption = name: { + enable = mkEnableOption "whether to enable ${name}"; + theme = mkThemeOption name; }; in { - inherit mkProgramOption; + inherit mkProgramOption mkThemeOption; }; in { inherit globimport; |
