Files
ndots/modules/home-manager/cedilla/default.nix
T
2026-07-12 15:25:55 -03:00

30 lines
738 B
Nix

{ lib, config, ... }:
{
options.custom = {
cedilla.enable = lib.mkEnableOption "enable cedilla - apply Compose configuration for cedilla";
};
config = lib.mkIf config.custom.cedilla.enable {
home.file.".XCompose".text = ''
include "%L"
<dead_acute> <c> : "ç" ccedilla
<dead_acute> <C> : "Ç" Ccedilla
'';
systemd.user.services.fcitx5 = {
Unit = {
Description = "Fcitx5 input method";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "/run/current-system/sw/bin/fcitx5";
Restart = "on-failure";
};
Install.WantedBy = [ "graphical-session.target" ];
};
};
}