rose-pine-nix/modules/home-manager/tofi.nix
seth dc9553ef0b
feat(modules)!: bump minimum supported release to 24.05 (#203)
* chore(modules)!: bump minimum supported release to 24.05

* feat(modules): assert minimum supported version
2024-06-04 07:29:28 -04:00

13 lines
362 B
Nix

{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.tofi.catppuccin;
enable = cfg.enable && config.programs.tofi.enable;
in
{
options.programs.tofi.catppuccin = lib.ctp.mkCatppuccinOpt "tofi";
config.programs.tofi = lib.mkIf enable {
settings = lib.ctp.fromINI (sources.tofi + "/catppuccin-${cfg.flavor}");
};
}