2024-10-20 16:31:49 -07:00
|
|
|
{lib, ...}: {
|
2024-06-04 04:29:28 -07:00
|
|
|
config = {
|
2024-10-20 16:31:49 -07:00
|
|
|
assertions = [(lib.rp.assertMinimumVersion "24.05")];
|
2024-06-04 04:29:28 -07:00
|
|
|
};
|
|
|
|
|
2024-10-20 16:31:49 -07:00
|
|
|
options.rose-pine = {
|
|
|
|
enable = lib.mkEnableOption "Rosé Pine globally";
|
2024-04-22 10:39:12 -07:00
|
|
|
|
2024-05-21 17:23:55 -07:00
|
|
|
flavor = lib.mkOption {
|
2024-10-20 16:31:49 -07:00
|
|
|
type = lib.rp.types.flavorOption;
|
|
|
|
default = "main";
|
|
|
|
description = "Global Rosé Pine flavor";
|
2023-11-03 15:13:02 -07:00
|
|
|
};
|
2024-05-08 16:27:03 -07:00
|
|
|
|
|
|
|
accent = lib.mkOption {
|
2024-10-20 16:31:49 -07:00
|
|
|
type = lib.rp.types.accentOption;
|
|
|
|
default = "love";
|
|
|
|
description = "Global Rosé Pine accent";
|
2024-05-08 16:27:03 -07:00
|
|
|
};
|
2024-05-13 13:33:16 -07:00
|
|
|
|
2024-10-20 16:31:49 -07:00
|
|
|
sources = let
|
|
|
|
defaultSources = import ../../.sources;
|
|
|
|
in
|
2024-05-28 01:15:28 -07:00
|
|
|
lib.mkOption {
|
|
|
|
type = lib.types.lazyAttrsOf lib.types.raw;
|
|
|
|
default = defaultSources;
|
|
|
|
defaultText = "{ ... }";
|
|
|
|
# HACK!
|
|
|
|
# without this, overriding one source will delete all others. -@getchoo
|
|
|
|
apply = lib.recursiveUpdate defaultSources;
|
|
|
|
description = "Port sources used across all options";
|
|
|
|
};
|
2023-11-03 15:13:02 -07:00
|
|
|
};
|
|
|
|
}
|