diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-04-21 02:15:42 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2024-04-21 02:15:42 +0300 |
commit | e6ed60548397627bf10f561f9438201dbba0a36e (patch) | |
tree | f9a84c5957d2cc4fcd148065ee9365a0c851ae1c /modules/alacritty.nix | |
parent | 9ac64328603d44bd272175942d3ea3eaadcabd04 (diff) |
2024-04-21
Diffstat (limited to 'modules/alacritty.nix')
-rw-r--r-- | modules/alacritty.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/alacritty.nix b/modules/alacritty.nix new file mode 100644 index 0000000..704ce79 --- /dev/null +++ b/modules/alacritty.nix @@ -0,0 +1,36 @@ +{ config, lib, ... }: +with lib; +let + cfg = config.nixfiles.modules.alacritty; +in +{ + options.nixfiles.modules.alacritty.enable = mkEnableOption "Alacritty terminal emulator"; + + config = mkIf cfg.enable { + hm.programs.alacritty = { + enable = true; + settings = { + window = { + padding = with config.stylix.fonts.sizes; { + x = terminal; + y = terminal; + }; + dynamic_padding = false; + decorations = "Full"; + startup_mode = "Maximized"; + }; + selection.save_to_clipboard = true; + cursor = { + style = { + shape = "Block"; + blinking = "On"; + }; + vi_mode_style = { + shape = "Block"; + blinking = "Off"; + }; + }; + }; + }; + }; +} |