marleyos/modules/home/programs/pidgin/default.nix

37 lines
750 B
Nix
Raw Normal View History

2024-11-23 15:22:55 -08:00
{
lib,
config,
pkgs,
...
}: let
2024-11-23 15:22:55 -08:00
cfg = config.marleyos.programs.pidgin;
in {
options.marleyos.programs.pidgin.enable = lib.mkEnableOption "pidgin";
2024-11-23 15:22:55 -08:00
config = lib.mkIf cfg.enable {
2024-11-23 15:22:55 -08:00
programs.pidgin = {
enable = true;
plugins = with pkgs.pidginPackages; [
pidgin-window-merge
];
};
home.file = {
".purple/smileys/pandamotes".source = ./pandamotes;
".purple/smileys/pixelhead".source = ./pixelhead;
".purple/themes/hearty".source = ./hearty;
};
xsession.initExtra =
# sh
2024-11-23 15:22:55 -08:00
''
${lib.getExe config.programs.pidgin.package} &
2024-11-23 15:22:55 -08:00
'';
wayland.windowManager.hyprland.settings.exec-once = [
(lib.getExe config.programs.pidgin.package)
];
2024-11-23 15:22:55 -08:00
};
}