rose-pine-nix/modules/nixos/globals.nix

37 lines
924 B
Nix
Raw Normal View History

2024-05-28 01:15:28 -07:00
{ lib, ... }:
2024-05-21 14:53:46 -07:00
{
config = {
assertions = [ (lib.ctp.assertMinimumVersion "24.05") ];
};
options.catppuccin = {
enable = lib.mkEnableOption "Catppuccin globally";
flavor = lib.mkOption {
type = lib.ctp.types.flavorOption;
default = "mocha";
description = "Global Catppuccin flavor";
};
accent = lib.mkOption {
type = lib.ctp.types.accentOption;
default = "mauve";
description = "Global Catppuccin accent";
};
2024-05-28 01:15:28 -07:00
sources =
let
defaultSources = import ../../.sources;
in
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";
};
};
}