rose-pine-nix/modules/home-manager/sway.nix

16 lines
455 B
Nix

{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.wayland.windowManager.sway.catppuccin;
enable = cfg.enable && config.wayland.windowManager.sway.enable;
theme = "${sources.sway}/themes/catppuccin-${cfg.flavor}";
in
{
options.wayland.windowManager.sway.catppuccin = lib.ctp.mkCatppuccinOpt "sway";
config = lib.mkIf enable {
wayland.windowManager.sway.extraConfigEarly = ''
include ${theme}
'';
};
}